Re: [R] separate date and time

2011-05-12 Thread Schatzi
That is wonderful. Thank you. Adele Ken Takagi wrote: > > Schatzi cargill.com> writes: > >> >> I have a combined date and time. I would like to separate them out into >> two >> columns so I can do things such as take the mean by time across all >> dates. >> >> meas<-runif(435) >> nTime<-seq(

Re: [R] separate date and time

2011-05-12 Thread KEn
Schatzi cargill.com> writes: > > I have a combined date and time. I would like to separate them out into two > columns so I can do things such as take the mean by time across all dates. > > meas<-runif(435) > nTime<-seq(1303975800, 1304757000, 1800) > nDateT<-as.POSIXct(nTime, origin="1970-01-0

[R] separate date and time

2011-05-12 Thread Schatzi
I have a combined date and time. I would like to separate them out into two columns so I can do things such as take the mean by time across all dates. meas<-runif(435) nTime<-seq(1303975800, 1304757000, 1800) nDateT<-as.POSIXct(nTime, origin="1970-01-01") mat1<-cbind(nDateT,meas) means1<- aggrega