[R] expanding out date and time
ripley at stats.ox.ac.uk
Fri Feb 21 15:51:09 CET 2003
Probably strptime() -- see its help page.
strsplit() is fairly easy but you would need to reorganize it's output.
On Fri, 21 Feb 2003, James Taylor wrote:
> What is the easiest way yo convert a column of time eg 09:25:45 into
> three columns of hour, minute,seconds
Is that a character string: I am assuming so, but they are printed with
Your subject says `date and time', but your example is only a time.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help