Re: [R] Sort by timestamp

2009-03-27 Thread j.k
Works perfect!! Thanks a lot... Cheers Johannes Arien Lam wrote: > > Good morning Johannes, > > This might help. Try: > > df <- data.frame(V1=as.factor(c('2008-10-14 09:10:00','2008-10-14 > 9:20:20','2008-10-14 08:45:00')),V2=runif(3)) > > df # is a dataframe, just as yours > >

Re: [R] Sort by timestamp

2009-03-27 Thread Arien Lam
Good morning Johannes, This might help. Try: df <- data.frame(V1=as.factor(c('2008-10-14 09:10:00','2008-10-14 9:20:20','2008-10-14 08:45:00')),V2=runif(3)) df # is a dataframe, just as yours class(df$V1) # is a factor, just as yours. See ?factor # This will probably not

[R] Sort by timestamp

2009-03-26 Thread j.k
#Good morning alltogheter. I'm using R for a short time to analyse TimeSeries and I have the following Problem: #I have a bunch of Time Series: #First of all I import them from a txt File data.input01 <-read.csv("./LD/20081030.txt", header = TRUE, sep = ";", quote="\"", dec=",", fill = TRUE, comm