Re: [R] POSIX turns into factor

2010-10-16 Thread Ben Bolker
Toby Gass 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 colClasse

[R] POSIX turns into factor

2010-10-16 Thread Toby Gass
Dear helpeRs, I am working with a dataframe that includes a column, "calendar", used for plotting time series. > class(dat$calendar) [1] "POSIXt" "POSIXlt" When I finish working, I save my data as a .csv file. When I read the file in again, "calendar" is always a factor > class(dat$calendar