doy2date | R Documentation |
Given a day of the year as julian (1-366) it converts to ‘Date’
Given a ‘Date’ it converts to julian day (1-366) or day of the year
doy2date(x, year = 2001, inverse = FALSE)
date2doy(x, year = 2001, inverse = FALSE)
x |
either an integer 1-366 or a ‘Date’ |
year |
year |
inverse |
if TRUE it goes from doy to ‘Date’ |
an object of class ‘Date’ or a numeric if inverse equals TRUE.
an numeric or an object of class ‘Date’ if inverse equals TRUE.
doy2date(120)
date2doy("04-30")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.