decimalDate | R Documentation |
Create a decimal date or date/time from a vector. (function credit to EGRET)
decimalDate(rawData)
rawData |
vector of dateTimes |
vector of decimal dates
## Not run: dateTime <- c('1984-02-28 13:56', '1984-03-01 00:00', '1986-03-01 00:00', '1986-10-15 00:00') decimalDate(dateTime) dateTime <- c('1984-02-28', '1984-03-01', '1986-03-01', '1986-10-15') decimalDate(dateTime) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.