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
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
2 matches
Mail list logo