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

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
Hi, Not sure if this helps. deviceSummary <- data.frame(item = character(0) ,  value = numeric(0) , unit = character(0) ,stringsAsFactors=FALSE) newlst<-  list("primitiveSpace",1.1,"mm2") deviceSummary[nrow(deviceSummary)+1,]<- newlst newlst2<-  list("primitiveSpace",2.2,"mm2")  deviceSummary[n

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

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.. > >

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

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