[R] reading in time series

Mogguy mogguy at gmx.net
Thu Jan 20 12:46:48 CET 2011


You have to tell R that a column has date/time content. Here is an example:

test<-"3/23/2010 20:55" #this is your format 
as.POSIXct(test, format="%m/%d/%Y %H:%M") #with the format parameter you
tell R how to interpret your data

_______________________
Moritz Grenke
http://www.360mix.de



More information about the R-help mailing list