.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar
, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO
/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 NewmillerThe . . Go
the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
://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
Dimitri Shvorob wrote:
df$dt - as.Date(df$t)
Thank you, David, but I need a *time* value. day was a confusing special
case; how about min?
Your original question was NOT clear on this point... it was not David's
fault your question was confusing, and you haven't even hinted at an
wata...@post.com wrote:
-Original Message-
From: jas4710 wata...@post.com
To: r-help@r-project.org
Sent: Mon, Nov 22, 2010 4:11 pm
Subject: [R] how to loop through variables in R?
After importing a table with M variables and N records, I'd like to
calculate chi-square statistics,
madr wrote:
my csv file is very simple - just one line for purpose of this test:
0{TAB}0
and read function is this:
csvdata = read.csv(file=d:/s/test.csv,head=FALSE,sep=\t)
then error comes:
Error in source(d:/test.csv) :
d:/test.csv:1:9: unexpected numeric constant
1: 0 0
but
You need to load the package and then load the data:
library(AER)
data(DJFranses)
then it will be available for you to work with.
Stephen Liu wrote:
Hi folks,
Win7
On running;
data(package = .packages(all.available = TRUE))
it displays a list of datasets under:-
Data sets in package
Dimitri Shvorob wrote:
Nor would I call this much of an improvement in clarity... what about
min? You want to know the minimum?
LOL. (And apologies for the insensitivity). Thank you for help, Jeff. This
works, but I am still curious to see a solution based on trunc, if anyone
can find it.
FAQ 7.31
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f
You find it odd that the result is not an integer, while I find the fact
that your calculation actually works reliably with any number of digits
surprising, and you should avoid assuming
Neither file_test nor file.exists address the OP question, since
both of these depend on the filesystem stat call, which doesn't work
via arbitrary remote access protocols such as http.
Baoqiang Cao: The simplest answer is that if you want the file, try
to download it, and deal with any error
read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew
, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live
://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
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
mailing list
https://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
://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
/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 NewmillerThe . . Go
guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
commented, minimal, self-contained, reproducible code.
---
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
Fahim Md wrote:
Is there any function/way to merge/unite the following data
GENEID col1 col2 col3col4
G234064 1 0 0 0
G234064 1 0 0 0
guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
-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
Sapply is not significantly faster than a for loop. Vectorization
generally is, but you pay for it in RAM.
dat.oc - oc[dat$Class,]
dat$Flag - ifelse(with(dat.oc,(Open=dat$Close_date
dat$Close_date=Close) | (Open1=dat$Close_date
dat$Close_date=Close1)),Valid,Invalid)
If you are really
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar
/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O
://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
raje...@cse.iitm.ac.in wrote:
Hi,
I create several dataframes in a nested loop and would like to maintain them in
a matrix form with each dataframe represented by the row and the column. How
can I do this?
You can't, at least as you describe it.
However, you can add a column for row ID
-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
and provide commented, minimal, self-contained, reproducible code.
---
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#. #.O
-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics
mailing list
https://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
-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live
Chris Howden wrote:
Hi everyone,
I’m working with some very big datasets (each dataset has 11 million rows
and 2 columns). My first step is to merge all my individual data sets
together (I have about 20)
I’m using the following command from sqldf
data1 - sqldf(select A.*, B.*
(A)
--
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
Tengfei Yin wrote:
Hi dear all
I am currently using Ubuntu 9.10 (karmic) and R 2.10, I can find a R release
that support karmic in cran under ubuntu directory, I plan to update my
laptop to Ubuntu 10.04 after April 30, since I have to use some new features
or new version in it, e.g. QT 4.6, I
Greg Orm wrote:
Dear r-help list members,
I am quite new to R, and hope to seek advice from you about a problem I have
been cracking my head over. Apologies if this seems like a simple problem.
I would not call it exactly simple... but mostly because your data
representation is so obscure.
Roslina Zakaria wrote:
Hi,
I have this code here and try to use sapply code. But I got error message that
I don't really understand to correct.
bt - c(24.96874, 19.67861, 23.51001, 19.86868); round(bt,2)
alp - c(2.724234, 3.914649, 3.229146, 3.120719); round(alp,2)
bt_alp -
list
https://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/BatteriesO.O
commented, minimal, self-contained, reproducible code.
---
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
-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go
...
--
---
Jeff NewmillerThe . . Go Live...
DCN:[EMAIL PROTECTED]Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research
.)
--
---
Jeff NewmillerThe . . Go Live...
DCN:[EMAIL PROTECTED]Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research
--
---
Jeff NewmillerThe . . Go Live...
DCN:[EMAIL PROTECTED]Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/BatteriesO.O#. #.O
joins are fairly small you can use R's merge function and doBy.
It seems a bit much to me to expect a database access library to
do double duty as a SQL database engine, though.
--
---
Jeff Newmiller
.
--
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
-Dimensional.html
---
Jeff NewmillerThe . . Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
You haven't provided a reproducible example.
I do notice you are using T and F which are variables that can be redefined
(which is why TRUE and FALSE are preferred.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew
be answered online.
---
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
better what your Matlab
library is doing.
---
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
I don't have any idea about linking Fortran to R, but if I did I am sure I
would want complete command lines and error messages before I looked at your
problem.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew
Reading ?expand.grid, there is a see also reference to combn which looks
close to what you want.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
Merge can only handle two tables at a time.
---
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
.
---
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
RSiteSearch(cross product)
library(pracma)
?cross
Speed is usually desired in the context of many similar computations, and is
normally achieved in R by vectorizing computation, so storing the large
number of 3d vectors together in a structure like a Nx3 matrix so the code
can be vectorized
On 07/08/2011 07:58 AM, Spencer Graves wrote:
On 7/8/2011 4:26 AM, Federico Calboli wrote:
On 8 Jul 2011, at 12:06, Duncan Murdoch wrote:
On 11-07-08 6:20 AM, Federico Calboli wrote:
HI All,
I have written and succesfully uploaded a new package. The licence it
is under is 'GPL' --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) .OO#. .OO#. rocks
somewhere with filenames
matching the time zones).
---
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
.
---
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
.
---
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
Kind of hard to figure out the problem without a reproducible test case. Hint:
see the posting guide.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead
?predict
Use data.frame() to generate input vectors (newdata) for which you want
predicted values.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead
This is off-topic, and extremely easy to find an answer to using Google.
---
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
there.
---
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
Create a difftime object and subtract it from your chron vector.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer
then.
---
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
Simplest to make two consecutive loops.
---
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
?expand.grid
---
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
Suggestion: read the posting guide and tell us enough information to interpret
your problem.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO
dta is a very generic extension, so that is not enough information. I recommend
saving it and opening it with a text editor. If it is binary, you will need to
ask the sender how to open it.
---
Jeff Newmiller
automatically remove that
level from the factor.
---
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
assignments straight.
---
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
This email, or rather one that includes a reproducible example, belongs in the
email box of the author of the library, as identified in the library help file.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew
Please read the posting guide.. this is not a homework help list. Thus, further
discussion of this thread is off topic here. Perhaps you can correspond offlist.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew
Use Date instead of POSIXct. Since your data is already POSIXct you need to
convert to character and then Date before you use difftime.
a - as.POSIXct(2011-08-02 00:01:00)
b - as.POSIXct(2011-08-01 23:59:00)
as.Date(as.character(a,format=%Y-%m-%d))-as.Date(as.character(b,format=%Y-%m-%d))
Yup.
Read ?write.csv and note the row.names argument.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar
That would be because ToothGrow is not ToothGrowth.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries
Why would you assert that the mean is the same as the intercept? For data
clustered far from the y axis this seems clearly unlikely to be true.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics
Sorry, I missed the nature of the data.
As to your original question, perhaps typing summary.lm at the R prompt can
enlighten you?
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics
This is a nonsensical request. It is like saying you want to plot the speed of
a falling object but you want the units of speed to be meters.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics
Please refer to the posting guide... This is not a mathematics tutoring list.
Your question does not appear to be about R, so no one has responded.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us
factors then you can perform and comparisons, but that can
affect the statistical algorithms you apply elsewhere.
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO
x - rep(00,2)
y - c(23/45,67/8)
substr(x,1+nchar(x)-nchar(y), nchar(x)) - y
x
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
, then this is probably
not the list to be asking questions about using R from Excel on. There is a
mailing list for rcom/RExcel questions (I think it is at
http://mailman.csd.univie.ac.at/pipermail/rcom-l/).
---
Jeff
On 03/24/2011 06:29 AM, Michael Bach wrote:
Dear R users,
Given this data:
x- seq(1,100,1)
dx- as.POSIXct(x*900, origin=2007-06-01 00:00:00)
dfx- data.frame(dx)
Now to play around for example:
subset(dfx, dx as.POSIXct(2007-06-01 16:00:00))
Ok. Now for some reason I want to extract the
library(plyr)
ldply(x,function(v){data.frame(Start=v$Start,End=v$End)})
---
Jeff Newmiller The . . Go Live...
DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research
1 - 100 of 3896 matches
Mail list logo