Re: [R] Converting factor into date

2011-10-10 Thread Vikram Bahure
Hi, I am getting my results from the following: *z$Date<-as.Date(as.character(z$Date),format="%d/%m/%y")* instead of: z$Date<-as.Date(as.character(z$Date,format="%d/%m/%y")) Thanks again. Regards Vikram On Mon, Oct 10, 2011 at 4:08 PM, Jeff Newmiller wrote: > Convert to character first or

Re: [R] Converting factor into date

2011-10-10 Thread Jeff Newmiller
Convert to character first or use the "as.is" option to read.csv. The default is to try to convert the underlying integer form of factors to date, which is not what you intend. --- Jeff Newmiller The . . Go Live... DC

[R] Converting factor into date

2011-10-10 Thread Vikram Bahure
Dear R users, I have an elementary query. I have a dataset which is taken from text file with the help of read.csv command but when I generate the data in R file it converts the Dates into factor.So for the above problem, I use as.Date to convert the Dates from factor form to date format using th