Re: [R] basic help with as.Date()

2015-03-26 Thread Jeff Newmiller
That would be because they are not dates... they don't specify the day. Either add a day of month to the character data before you convert it, or use the yearmon class from zoo. Something like... as.Date(paste("1",as.character(df$mydate),sep="-"), format='%d-%b-%y') And why in the world are yo

Re: [R] basic help with as.Date()

2015-03-26 Thread Marc Schwartz
> On Mar 26, 2015, at 4:11 PM, Simon Kiss wrote: > > Hi there: normally I’m quite comfortable with as.Date(). But this data set is > causing problems. > > The core of the data frame looks like the sample data frame below, but my > attempt to convert df$mydate to a date object returns only NA.

Re: [R] basic help with as.Date()

2015-03-26 Thread Prof Brian Ripley
On 26/03/2015 21:11, Simon Kiss wrote: Hi there: normally I’m quite comfortable with as.Date(). But this data set is causing problems. The core of the data frame looks like the sample data frame below, but my attempt to convert df$mydate to a date object returns only NA. Can anyone provide a

[R] basic help with as.Date()

2015-03-26 Thread Simon Kiss
Hi there: normally I’m quite comfortable with as.Date(). But this data set is causing problems. The core of the data frame looks like the sample data frame below, but my attempt to convert df$mydate to a date object returns only NA. Can anyone provide a suggestion? Thank you, Simon Kiss #samp

Re: [R] Basic help on DF creation row by row

2013-10-02 Thread Rui Barradas
, HRB 3708 USt-IDNr./Tax identification no.: DE 119353406 WEEE-Reg.-Nr./WEEE reg. no.: DE 14978647 From: Rui Barradas To: rolf.kem...@renesas.com, Cc: r-help@r-project.org Date: 10/01/2013 08:38 PM Subject: Re: [R] Basic help on DF creation row by row Hello, The main pro

Re: [R] Basic help on DF creation row by row

2013-10-01 Thread Rui Barradas
Hello, The main problem is in the way you form newRow. You can't mix data classes in a vector created with c(), so all its elements become characters, the least common denominator: newRow <- c("primitiveSpace", 1.1 , "mm2") newRow [1] "primitiveSpace" "1.1""mm2" Then when you rb

Re: [R] Basic help on DF creation row by row

2013-10-01 Thread arun
m2"  deviceSummary #    item value unit #1 primitiveSpace   1.1  mm2 #2 primitiveSpace   2.2  mm2 A.K. - Original Message - From: "rolf.kem...@renesas.com" To: r-help@r-project.org Cc: Sent: Tuesday, October 1, 2013 9:24 AM Subject: [R] Basic help on DF creation

[R] Basic help on DF creation row by row

2013-10-01 Thread rolf . kemper
Dear Experts I'm very new to R and after some days or reading and testing I tried to make my first small application (and failed ...) In general I would like to work with sqldf , ggplot2 to create some graphical output. At present I got stuck with this: PROG ###

Re: [R] Basic help

2012-05-25 Thread Rui Barradas
Hello, First of all, 'c' is a bad name for a variable, it's also the name of an R function. Think a, b, k, d, ... Now, try y <- m %o% x + k Hope this helps, Rui Barradas Em 24-05-2012, 2:07, Abhay Joshi

Re: [R] basic help: graph multivariate analysis.

2012-02-17 Thread R. Michael Weylandt
There are lots of multivariate graphs.perhaps browsing this gallery will give you some idea of what you want (example code is provided): http://addictedtor.free.fr/graphiques/ This blog also does a nice job of introducing some graphs with the ggplot2 package: https://learnr.wordpress.com/ Mic

[R] basic help: graph multivariate analysis.

2012-02-17 Thread aoife
Hey guys, I'd really appreciate any help. I have a multivariate analysis done, the output of which is: > GraphData <-read.table("eigen.coa") > GraphData V1 V2 V3 V4 1 1 0.371970 0.8552 0.8552 2 2 0.061785 0.1420 0.9972 3 3 0.001211 0.0028 1. 4 4 0.00 0. 1. > su

Re: [R] Basic Help with Zoo objects and trading days

2011-01-29 Thread Gabor Grothendieck
On Sat, Jan 29, 2011 at 2:03 PM, john nicholas wrote: > All, > > I have been just recently working with zoo objects for trading systems. > > Can someone please help with these basic questions? > > Given a daily time series downloaded using get.hist.quote() from the tseries > package, ie.. > >

[R] Basic Help with Zoo objects and trading days

2011-01-29 Thread john nicholas
All, I have been just recently working with zoo objects for trading systems. Can someone please help with these basic questions? Given a daily time series downloaded using get.hist.quote() from the tseries package, ie.. startDate= as.Date("2000-01-01") endDate= as.Date("2011-01-29") freque

Re: [R] Basic help needed

2008-07-09 Thread Gabor Grothendieck
Right click the R icon and choose Run As Administrator and then install the package. This is only needed for package installation if you don't have have a local library in your home tree and also is not needed for just everyday running of R. On Wed, Jul 9, 2008 at 9:15 PM, Luciano La Sala <[EMAIL

[R] Basic help needed

2008-07-09 Thread Luciano La Sala
Hello all, New user here. I have R 2.7.1. installed, but don’t have internet access in my PC. Therefore, I downloaded the ISwR package (Introductory Statistics with R) from CRAN and then moved it into my HD. I can’t seem to install the local package under Windows Vista system. I've tried using

Re: [R] basic help

2008-03-20 Thread מוטי אסולין
Thank you, it worked perfectly. Moti -Original Message- From: Chuck Cleland [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 10:40 AM To: מוטי אסולין Cc: r-help@r-project.org Subject: Re: [R] basic help On 3/20/2008 12:59 AM, מוטי אסולין wrote: > Hi, > I am a new R user

Re: [R] basic help

2008-03-20 Thread Chuck Cleland
On 3/20/2008 12:59 AM, מוטי אסולין wrote: > Hi, > I am a new R user (used SPSS for many years) and I need help. > I have a data frame mydata with 8 variables m2008:m2001 > I wanted to add a new variable mydata$firstvalid that tells me what is the > first non missing variable for each case (without

[R] basic help

2008-03-19 Thread מוטי אסולין
Hi, I am a new R user (used SPSS for many years) and I need help. I have a data frame mydata with 8 variables m2008:m2001 I wanted to add a new variable mydata$firstvalid that tells me what is the first non missing variable for each case (without using for-next). I tried many variations of this: