PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live
...
--
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
-04-30 23:01:00 2002-04-30 23:01:00
rather, you are seeing a side effect of sapply.
--
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live
commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
I'll hazard a guess that perhaps you should update your installed packages.
However, you ought to read the posting guide and provide the suggested
information if you want better answers.
---
Jeff Newmiller The . . Go
.)
---
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
Insufficient problem specification. Read the posting guide and try again with
reproducible code and platform identification.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live
Yes.
If you want a more detailed answer, follow the posting guide instructions and
provide a reproducible example. There are three plot systems in R, each with
their own approaches to solving this problem.
---
Jeff
- as.character( data$date )
Factors are useful, but not for merging between different data frames.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
X and y must have the same number of elements, and NA values must be removed
(?na.omit)
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
This is daylight savings time issue.
Use chron or set your TZ environment variable to a standard-time-only timezone
(or don't enter nonexistent time values for the timezone in which you wish to
compute).
---
Jeff Newmiller
.
---
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
I think you might find, like me, that working with your data in character
string form until you get it qc'd will be much easier to analyze.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics
.
---
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
.
---
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
The crossprod function in base R implements the MATRIX cross product, more
familiarly known as matrix multiplication.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go
.
---
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
speed up algorithms, but things
people sometimes think are vectorizing are not really.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
This is not an R question. Use the print function in R and use backticks in
bash.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
A much better solution is to make separate functions for each object you
import, and return an object from the function to be assigned in the calling
environment. This will be far less confusing to read later.
---
Jeff
friendly with
non-mainstream software.
---
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/BatteriesO.O
Just because your model specification is valid does not mean your data can be
analyzed using that particular model specification.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
As Uwe said, you need to read the fine manual and set up your system to be able
to compile source packages. On Windows that essentially means installing Rtools
and Miktek, and configuring some environment variables.
---
Jeff
://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff Newmiller
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
Such a resource would no longer be R-help. You might like stackoverflow.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
of the data you are working with to arrive at
the point where you are stuck in your email is rather important to getting the
most useful assistance on this mailing list.
---
Jeff Newmiller
to it.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O#. with
/Software
Inline below ...
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO
You forgot to provide code to work with. There are multiple ways to deal with
time in R, but we don't know how you are doing it.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
),
\r should work, but \n may get munged.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
between text files and binary files just so this native adaptation can occur
or not, depending on the desired behavior.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
to character before combining them, and only convert to
factor when you have all of your possibilities present (or you specify them in
the creation of the factor vector).
---
Jeff Newmiller
Not reproducible. Read the posting guide. Provide enough data to reproduce the
problem.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
that) into the R command line, or use
the source function to pull in a set of functions all at once.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
This is R-help, not the linear algebra hotline. Please stay on topic.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
?source
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
I don't either.
You might have better luck communicating with the developers through their
website, the one you likely downloaded RStudio from.
---
Jeff NewmillerThe . . Go Live
No, you use it once and it does the whole vector at once.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
I would guess you have factors instead of strings. Use as.character() or the
appropriate parameter to prevent generation of factors when you import the
names into R.
---
Jeff Newmiller
conversion to factor.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO
If Suggests doesn't work for you, perhaps you need to put more effort into
reinventing the wheel, and depend less on other packages.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
or
plyr package functions. Those idioms are not necessarily faster than for
loops, but they can wrap up some common split and assemble steps cleanly.
---
Jeff NewmillerThe . . Go Live
the object if you use rbind to
grow your object.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
You need to read the posting guide. Provide a reproducible code sample,
simplified, with self-contained data.
You might find the ave function useful if you are working with vectorized
simulations.
---
Jeff Newmiller
this calculation in a vectorized manner, I suggest you use
the if ... else ... else syntax to accomplish this. See the help for if.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
to
do your logical merging into one column.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
assumptions about
how this function returns results are valid.
---
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/BatteriesO.O
)
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O
to
understand the floating-point numbers as if they were formatted dates it they
aren't.
For my part, I highly recommend exporting to CSV before importing to R.
---
Jeff NewmillerThe . . Go
Omitting the leading zero is dangerous, since the decimal point can disappear
in a poor hardcopy leading to later misinterpretation.
---
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/Batteries
Don't do that.
Use $ notation to refer to elements of lists/data frames explicitly.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
You might be interested in package bit.
---
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
No.
If you want a more informative answer, try following the recommendations in the
posting guide mentioned below.
---
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#. #.O
for that
function by typing
?plot
at the R command line would have provided you with more examples and usage info
on how to get around this problem.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
This is not a homework help list.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
RStudio is not R. Go ask the RStudio support people at www.rstudio.org.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
RTFM. (Writing R Extensions. It comes with R.) Since you are asking this
question I will hazard a guess that you are on Windows, and will want to
install RTools per that documentation.
---
Jeff Newmiller
that works
with a particular data set (e.g. use quantiles), but you may be asking too much
to automate that for all data sets.
---
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
Read the posting guide. An example is not reproducible without sample data.
You may need to remove data records containing NA. It may not even be a true
NA, depending how you got your data into R.
---
Jeff Newmiller
You could read the help for expand.grid very carefully for the answer to this
question.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
wrote in message
news:80cc9ff9-d867-4dfc-b6e3-9c1df7822...@email.android.com...
You could read the help for expand.grid very carefully for the answer to
this question.
---
Jeff Newmiller
-substitution on your
own.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO
Some output devices don't support transparency. Try a different output device.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live
that the dates are not selected, but dates are not the
only info missing; there are no records at all in the result.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
This is not the RStudio server support mailing list.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
Your desiredOrder vector is a vector of strings. Convert it to numeric and it
should work.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
-contained, reproducible code.
[[alternative HTML version deleted]]
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live
It may be mainstream but it really isn't as easy to use or as universally
readable as plain text.
There are other forums to meet this need, such as stackoverflow.com.
---
Jeff Newmiller
?
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
This is OT here. However, you might want to investigate the UNIQUE keyword in
the SQL Server documentation for SELECT.
---
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
and figure out how
to thread them together to minimize memory use (a dangerous course of action).
Try working on chunks of xx? Or getting more memory in your computer?
---
Jeff Newmiller
?save
?load
You may need to create single use environment objects to hold the whole file
while you separate multiple objects.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
understand it).
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O
Regarding your last question, read ?cut
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
http://cran.r-project.org/doc/manuals/R-intro.pdf
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
has one element for
every numeric in the vector you gave it. It is common to assign the result of
cut to a new column in your data frame. However, I may have misunderstood your
question.
---
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
I don't believe you can. However, you need not install it into a system-wide
library directory... your personal library (e.g.
/home/jonas/R/x86_64-pc-linux-gnu-library/2.14) should be sufficient.
---
Jeff Newmiller
does... you
have to explicitly create every calculated column in your function.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live
went back to
the edit compile reload cycle to test the library in it's final form.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
http://stackoverflow.com/questions/726690/who-killed-my-process-and-why
---
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/BatteriesO.O
?gc
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
It may be possible, but perhaps not a good idea. A better approach would be to
use multiple graphs (panels in lattice or facets in ggplot2).
Provide a reproducible example and you might get a more concrete example.
---
Jeff
in R.
Build the IN clause something like
literals - paste (', mMPILatestHosp$ID,')
inclause - paste (ID IN (, paste(literals, collapse =,),), sep=)
---
Jeff NewmillerThe . . Go Live
You should read the error message and fix the mentioned file's ownership (see
ls -l and man chown)
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
201 - 300 of 3908 matches
Mail list logo