Skip to content
Prev 205585 / 398506 Next

R treating time

There is an alternative through strsplit() when the desired output format is numeric (fractional hours on 0-24 scale).
[[1]]
[1] "3"  "00"

[[2]]
[1] "11" "42"
[1]  3.0 11.7

AM/PM can be dealt with similarly.
[1]  TRUE FALSE
[[1]]
[1] "3"  "00"

[[2]]
[1] "11" "42"
[1] 15.0 11.7

Cheers,

M. Kulich
On 7.1.2010 8:26, Dennis Murphy wrote: