Re: [R] Fwd: converting character matrix to POSIXct matrix

2013-04-26 Thread David Winsemius
On Apr 26, 2013, at 3:12 PM, hh wt wrote: > I thought i copy the list for the few suggestions i received privately. > > Thanks to David Winsemius for pointing out that elements of a matrix must > be atomic. POSIX objects are list, so won't work. I did state the first point. I didn't actually sa

[R] Fwd: converting character matrix to POSIXct matrix

2013-04-26 Thread hh wt
I thought i copy the list for the few suggestions i received privately. Thanks to David Winsemius for pointing out that elements of a matrix must be atomic. POSIX objects are list, so won't work. But data frame is an option, as suggested by arun below. res<-data.frame(lapply(seq_len(ncol(time.m