[R] Convert numeric value to POSIXct
Matt Pocernich
pocernic at rap.ucar.edu
Thu Jan 23 00:42:03 CET 2003
I found my error. I was using cbind to connect a vector of POSIXct values
and numeric values. Doing this caused the POSIXct format of the date
vector to be lost. By correctly connecting them with data.frame, this was
not a problem.
Thanks,
Matt Pocernich
NCAR - Research Applications Program
303-497-8312
On Wed, 22 Jan 2003 ripley at stats.ox.ac.uk wrote:
> You can't safely. Why do you want to do this?
>
> If there is a good reason,
>
> structure(ddd, class=c("POSIXt", "POSIXct"))
>
> will work currently, with no guarantees for the future.
>
> On Wed, 22 Jan 2003, Matt Pocernich wrote:
> --
> 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
mailing list