doy_2md | R Documentation |
Translates numbers into human-readable day and month, useful when working with phenology data.
Note that this function treats decimals as their floor, so doy_2md(doy = 5.8)
returns "January 05".
By default, assumes a non-leap-year.
doy_2md(doy, short = FALSE, leap = FALSE)
doy |
numeric or vector of numerics representing the day of year. |
short |
Do we want months abbreviated? Defaults to |
leap |
Do we want to assume a leap year? Defaults to |
A character string or vector of strings, with human readable day/month.
doy_2md(18) doy_2md(c(15, 29.8, 180)) doy_2md(c(15, 29.8, 180), short=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.