julTOymdh | R Documentation |
Converts Julian dates to YYYYMMDDHH or YYYYMMDD character format.
julTOymdh( julianDates, origin = NULL, dropHour = NULL)
julianDates |
A numeric vector specifying Julian dates. |
origin |
A named vector specifying the month, day, and year for the
origin of the Julian dates. The default is
|
dropHour |
A logical value indicating whether of not the hour information
should be drop from the specifiation of the dates if none of the
Julian dates are fractional.
The default is |
Requires the chron
library.
A character vector or numeric equivalent of dates in the form YYYYMMDDHH or YYYYMMDD, in which YYYY specifies the year, MM the month, DD the day, and (optionally) HH the hour corresponding to the Julian input.
dateCheck,ymdhTOjul
data(ensBMAtest) julianIdates <- ymdhTOjul(ensBMAtest$idate) all.equal( julTOymdh(julianIdates), as.character(ensBMAtest$idate)) all.equal( ymdhTOjul(ensBMAtest$vdate), julianIdates+2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.