Re: [R] date format conversion problem

2007-10-24 Thread Joao Santos
Hello Ben, First of all thanks for the reply,and sorry because I haven't replied early. In this time I find another form to create the "my time", like this: bbrass = scan("C:/Program Files/R/data PTIN/bbrass_client_2471_pool_72644_percent_in_use_500_NA.dat") regts.start = ISOdatetime(2006, 7, 1,

[R] date format conversion problem

2007-10-10 Thread Ben Bolker
Joao Santos-7 wrote: > > Hello, > > I problem is in the format of the date, my time series is like this: > > [snip] > > When I attempt to format the time like this: > > A <- read.table("file", sep="\t", col.names=c("date", "my1", "my2", > "my3")) > temp <- as.Date(A$date, format="%Y%m%d%H")