intToPOSIX | R Documentation |
Takes integer value produced by as.numeric(x)
, where x
is a
POSIXct vector and returns it to a POSIXct vector
intToPOSIX(timeVector, tz = "GMT")
timeVector |
A vector of integers produced by as.numeric applied to a PSIXct vector |
tz |
Time zone of the vector (see |
POSIXct vector
There is no check that as.numeric applied to a POSIX vector produced
timeVector
. So, caution is required in using this function. It was
included simply because I have found it useful
Devin S. Johnson
#library(crawl)
timeVector <- as.numeric(Sys.time())
timeVector
intToPOSIX(timeVector, tz="")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.