[R] POSIX turns into factor
Ben Bolker
bbolker at gmail.com
Sat Oct 16 22:09:16 CEST 2010
Toby Gass <tobygass <at> warnercnr.colostate.edu> writes:
> I am working with a dataframe that includes a column, "calendar",
> used for plotting time series.
[snip]
> Is this unavoidable when going back and forth from a .csv, or can I
> do something differently to retain the class?
check out colClasses under ?read.table (of which read.csv is
a special case) -- "POSIXct" is an option here.
Ben Bolker
More information about the R-help
mailing list