[R] convert from seconds to date-time objects

Thomas Lumley tlumley at u.washington.edu
Mon Feb 3 18:12:04 CET 2003


On Mon, 3 Feb 2003, John Bjornar Bremnes wrote:

> The solution turned out to be simple:
>
> > x <- 0:100
> > class(x) <- "POSIXct"
> > x
>

Yes, but that relies on the internal representation of POSIXct objects,
which is probably unwise.

	-thomas




More information about the R-help mailing list