.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
You will run out of memory. 2*3^198 is about 5e95 rows and 4GB of RAM can
probably only hold about 5e8 rows.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
sure the
answer is right doesn't usually require compiled code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
The problem occurred when you imported your data, but you haven't shown those
steps.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
No. The while loop is only tested after the for loop has completed. Use debug
to understand this if it doesn't make sense to you.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
Should has nothing to do with it. That is the way the Olsen tz database works.
See en.wikipedia.org/wiki/Tz_database.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
users do not need to
concern themselves with the conditions, since most users don't change it.
Regarding compiling .exe files, R is not really designed for that.
---
Jeff Newmiller
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O
On Tue, 7 Feb 2012, David Winsemius wrote:
On Feb 7, 2012, at 12:56 PM, Jeff Newmiller wrote:
On Tue, 7 Feb 2012, Alexander Shenkin wrote:
Hello Folks,
I'm trying to vectorize a loop that processes rows of a dataframe. It
involves lots of conditionals, such as If column 10 == 3
if your
function.) Then you can assign the return value to some variable of your
choosing (including possibly one named mz_int in the calling environment) where
you call the function.
---
Jeff Newmiller
Set up a single (factor) variable that identifies the combinations that exist,
and plot using that variable.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O
picture, you may
find the plyr package helpful.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
What part of read the posting guide did you not understand? The provide
commented, minimal, self-contained, reproducible code part?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
)),
as.difftime(30,units=mins) )
This may not work well if the timestamp granularity is more fine than one
second.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO
complaint on windows. Thank you.
Look in C:\Program Files\R\R-version\share\zoneinfo
My zoneinfo does contain America/New_York.
Perhaps you should provide a reproducible example, like the posting guide
tells you to.
---
Jeff
.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
)
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
Then use as.matrix. Transpose is not a well-defined operation for data frames.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research
on input and
output (such as printing to the console) or conversion to POSIXlt that the
timezone is considered.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO
avoiding converting back and forth between numeric and POSIX times
anyway.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research
.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
Sys.setenv(TZ=Etc/GMT+5)
Make the timezone you prefer the default for that R session.
FWIW: EST may or may not exist as a valid timezone on your system, but it is an
ambiguous notation anyway.
---
Jeff Newmiller
Presumably in the source code of the package (something.tar.gz). Follow the
posting guidelines if you want further assistance.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics
Lists are recursive and heterogenous in R. Just assign the values to elements
in lists and assign those lists to elements in other lists to build your tree.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew
You need to ask this question on the Bioconductor mailing list.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar
configured quicker
too, since you can copy the old installed per user libraries to the new
directory and run update.libraries () at the R prompt.)
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics
whether you really want to enumerate all 10 possible
zip codes?)
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer
No.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers
seems like an obvious course of action given the error
messages.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar
cumsum, but you have to add back the information lost in the diff operation by
generating an extra zero at the beginning or end of the sequence and adding the
appropriate offset to the resulting vector.
---
Jeff Newmiller
, discussions of such topics do not belong on this mailing list. Give
Google a chance.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research
as vector
operations.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded
immediate problem by examining your data.in its external
storage. Please investigate and inform us.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
and ddr$y in order to
utilize labels for indexing.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O
Windows will work with either separator.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O
This is Googlable. You need to add the CRAN repository to your APT sources file.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
RSiteSearch(lambert)
I don't know anything about OpenBUGS, but implementations of the Lambert W
function exist, or you could roll your own.
---
Jeff NewmillerThe . . Go Live
to the name isn't so obvious at
first, I must admit, but it is one price we pay in R for being able to do
similarly named actions on different kinds of objects.
---
Jeff Newmiller
the section on indexing in the
Introduction to R document that ships with R to be very useful. In there it
mentions the effect of using negative index values:
AA[-(1:10)*10]
giving you the rest of the data.
---
Jeff Newmiller
It doesn't look like you have read the Posting Guide (see bottom of email).
This not a homework help forum. Please use the assistance provided by your
educational institution.
---
Jeff Newmiller
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O
outside this
range. Thus, the file appears to have invalid data.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
You should read the help for hist carefully:
?hist.Date
hist has very specific rules for applying breaks that are often different than
tabulation (tapply or aggregate, with or without using the cut function first).
---
Jeff
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research
What went wrong? You cross-posted. Don't ask about bioconductor packages on
R-help.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
off in helping you
decipher examples such as that ones above.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
it will
find your global version before it finds the one from the package.
For rebuilding the package, please read the Writing R Extensions documentation.
---
Jeff Newmiller
, the ggplot2 Google group is probably a better
bet than here.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
you forgot to define the x and y variables that you provided as examples.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer
appropriate for your loop.
for(i in 1:10){
plot( frames[[ i ]]$hour1 )
}
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
Algebra 1?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar
So what is the special behavior of the ^ symbol when not at the beginning of
the string that occurs when it is not escaped?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
only get ERE and Perl regexes in R. So I guess it isn't a bug,
but is rather a feature.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
I think you need to become more familiar with the factor data type. Reread
the Introduction to R document that comes with R.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O
The eigenvalue problem is not unique to R. This is an R mailing list. What is
your question about R?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
This issue is very platform-specific. you should post on R-sig-mac.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
if the arguments
have a variety of types.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
How about (assuming the variables you defined):
ms - matrix(unlist(vs), ncol=2,byrow=TRUE)
m[ms]
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
, and use
that test to identify which input combinations worked.
Provide a working starting point and someone might give you working code as an
answer. (where do a and b come into your problem?)
---
Jeff Newmiller
How can we possibly know where you went wrong if you don't tell us where you
went?
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff Newmiller
made a
reasonable effort if you showed what steps you tried in R and where you think
they went wrong.
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff Newmiller
$a ), ]
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O
?cat
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
Depends what algorithm you are using. Read ?set.seed
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
is that you don't know how to create what you want with any
tool, then you should figure that out before posting here.
stats.stackexchange.com might be helpful if that is the case.
---
Jeff Newmiller
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
). Look for info
on absolute path and relative path.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
, learn to examine the objects you create by
executing the statements one-to-one and interspersing ?str calls and printing
objects so you understand what the code is working with.
---
Jeff Newmiller
?parallel::parallel
Only one gui, multiple cores working at once.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
of data
together.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO
/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
Perhaps you would benefit from joining R-sig-mac, and/or perusing their
archives.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
there.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
is will require
a reproducible example.
[1]
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
Suggestion: follow instructions appropriate for your OS (see CRAN) to install
the current version of R. (2.15.2)
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
engine... or begin with the FAQs in R help or on
CRAN).
[1]
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff NewmillerThe . . Go Live
there.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O
stop() does not have momentum... it is designed to play nice.
Perhaps you want ?options(error=).
Alternately, you want to trigger a core dump?
---
Jeff NewmillerThe . . Go Live
Use POSIXct instead of POSIXlt in data frames in general, and particularly for
this task.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
, and then if it involves
anything more than ordinary file system access then you should Google for how
to invoke shell commands on your OS (shell/system/system2).
---
Jeff NewmillerThe . . Go Live
).
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar
Please don't repeat yourself.
Please read the Posting Guide. Don't post here using HTML email.
This is a statistics question, not an R question, so it is off topic here.
---
Jeff Newmiller
Excel definitely does not use nonlinear least squares fitting for power curve
fitting. It uses linear LS fitting of the logs of x and y. There should be no
surprise in the OP's observation.
---
Jeff Newmiller
the calculator
does. Setting up a Solver sheet to obtain trend coefficients is not a typical
way to obtain them in Excel... that would be the user's doing, not Excel's.
---
Jeff Newmiller
?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research
-reproducible-example
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
If you look at this question objectively, Spencer, would you not agree that
this question is entirely off topic here?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
this interfacing stuff up, but that will
require research on Mediawiki input format requirements, for which development
I would hope one would want a Mediawiki expert's help.
---
Jeff Newmiller
then unrolling your original
data into data frames and leaving them that way as much as possible will be a
wise move to make sooner rather than later.
---
Jeff NewmillerThe . . Go Live
it solves it
replaces with worse problems.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
(); result$x - x;
result$x2 - x^2; result})
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
301 - 400 of 3908 matches
Mail list logo