Description Usage Arguments Value Author(s) Examples
View source: R/a_few_more_funcs.R
Separates the date and hour components of a single column of decimal datetime.
1 | decdatetime(datetime, origin = "1899-12-30")
|
datetime |
A vector of decimal datetime |
origin |
A character string specifying the origin of the date numbering system. This must be structured as "yyyy-mm-dd". Defaults to |
A two-element list:
$date:
Dates in calendar date format, see as.Date.
$hour:
Hour block recorded as an integer between 0 and 23.
Matt Tyers
1 2 3 4 5 6 | data(datetime2015)
head(datetime2015)
date_hour <- decdatetime(datetime2015)
head(date_hour$date)
head(date_hour$hour)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.