Description Usage Arguments Value Author(s) See Also Examples
View source: R/chron2datestamp.r
This function converts dates from chron::
format and append the time as a fraction, for use as a timestamp
1 | chron2datestamp(x, res = 12)
|
|
= the date |
|
= the time will be calculated as a fraction of this value (defaults to |
character vector
unknown, <unknown>@dfo-mpo.gc.ca
Other date functions: convert.datecodes
,
date_picker
, dayofyear
,
get.day
, get_day
1 2 3 4 5 6 7 8 | require(chron)
t1<- chron(dates = dates(c("02/27/92")), times = "08:00:00")
chron2datestamp(t1,100)
[1] "02/27/92.33"
t2<- chron(dates = dates(c("02/27/92")), times = "12:00:00")
chron2datestamp(t2,10)
[1] "02/27/92.5"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.