ddate | R Documentation |
Convert a vector containing year, month, day or individual year, month, day arguments into a decimal date in years.
ddate(year, month, day)
year |
Either a numeric year OR a vector in the form of c(year, month, day). The latter option is so that ddate() can be conveniently used with apply(). |
month |
If year is a single value, must contain the number of the month. |
day |
If year is a single value, must contain the number of the day. |
ddate() will accept a vector with the three date components so that it can be conveniently used with apply() on a data frame containing columns for year, month and day.
The decimal date in years.
Sarah Goslee
ddate(2001, 5, 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.