from | R Documentation |
Helper functions for extracting information from dates. Or to create a Date from a day number.
fromDate(x, v)
fromYear(y, v)
fromDoy(doy, y)
x |
Date or POSIX |
y |
integer (year) |
v |
character. Output variable. With |
doy |
integer (day of the year) |
integer or Date
d <- as.Date("1999-12-30") + 1:2
d
fromDate(d, "month")
fromDate(d, "doy")
fromDoy(10, 2000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.