Re: [R] as.xts error

2010-12-06 Thread Joshua Ulrich
On Mon, Dec 6, 2010 at 5:57 AM, Gabor Grothendieck wrote: > On Mon, Dec 6, 2010 at 6:52 AM, Ted Zeng (曾振兴) wrote: >> >> Dear all, >> >> I am using the as.xts function to transfer a data frame to the xts >> >> The following is the code and result: >> >> a<-read.csv("price.csv") >> a$Date<-as.POSIX

Re: [R] as.xts error

2010-12-06 Thread Gabor Grothendieck
On Mon, Dec 6, 2010 at 6:52 AM, Ted Zeng (曾振兴) wrote: > > Dear all, > > I am using the as.xts function to transfer a data frame to the xts > > The following is the code and result: > > a<-read.csv("price.csv") > a$Date<-as.POSIXct(a$Date) > > str(a) > 'data.frame':   15637 obs. of  2 variables: >

[R] as.xts error

2010-12-06 Thread 曾振兴
Dear all, I am using the as.xts function to transfer a data frame to the xts The following is the code and result: a<-read.csv("price.csv") a$Date<-as.POSIXct(a$Date) str(a) 'data.frame': 15637 obs. of 2 variables: $ Date : POSIXct, format: "2010-01-04 09:45:01" "2010-01-04 09:45:02" "2

[R] as.xts error

2009-02-07 Thread glenn
Quick newbie question please: I am trying to turn a dataframe into xts with the function; As.xts But it returns the error; Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambiguous format could someone give me some pointers please the