Re: [R] converting character matrix to POSIXct matrix

2013-04-26 Thread Rui Barradas
Hello, You should keep this on the list, the odds of getting more and better answers are greater. I don't know if the following is what you want. apply(time.m, 2, function(tt) as.POSIXct(tt, format = "%H:%M:%OS")) Hope this helps, Rui Barradas Em 26-04-2013 21:49, hh wt escreveu: sapply

Re: [R] converting character matrix to POSIXct matrix

2013-04-26 Thread arun
22.071" ... # $ X3: POSIXct, format: "2013-04-26 08:00:20.799" "2013-04-26 08:00:23.821" ... # $ X4: POSIXct, format: "2013-04-26 08:00:20.799" "2013-04-26 08:00:24.369" ... # $ X5: POSIXct, format: "2013-04-26 08:00:20.799" "2013-04-26 08:00:2

Re: [R] converting character matrix to POSIXct matrix

2013-04-26 Thread Rui Barradas
Hello, Use sapply instead. Hope this helps, Rui Barradas Em 26-04-2013 18:51, hh wt escreveu: I thought this is a common question but rseek/google searches don't yield any relevant hit. I have a matrix of character strings, which are time stamps, time.m[1:5,1:5] [,1] [,2]

[R] converting character matrix to POSIXct matrix

2013-04-26 Thread hh wt
I thought this is a common question but rseek/google searches don't yield any relevant hit. I have a matrix of character strings, which are time stamps, > time.m[1:5,1:5] [,1] [,2] [,3] [,4] [,5] [1,] "08:00:20.799" "08:00:20.799" "08:00:20.799" "08:0