Re: [R] as.POSIXct on vector weird output

2011-09-12 Thread jim holtman
'f$V1' is a factor. try as.POSIXct(as.character(f$V1), format="%m/%d/%Y %H:%M:%S") You need to convert to a character first. On Mon, Sep 12, 2011 at 7:24 PM, bradford wrote: > I don't know R, so maybe I've done something wrong, but I'm working off an > example I saw on the web and wondering wh

[R] as.POSIXct on vector weird output

2011-09-12 Thread bradford
I don't know R, so maybe I've done something wrong, but I'm working off an example I saw on the web and wondering why as.POXIXct isn't returning the same result on f$V1 as it is on z. Did I do something wrong? Or is it a problem with my build? > f$V1 [1] 09/11/2011 13:46:39 09/11/2011 13:45:18