in_year | R Documentation |
Creates a schedule of events occurring in the year(s) specified.
in_year(...)
in_isoyear(...)
in_epiyear(...)
... |
A numeric vector of years. |
The type of year is determined by the function used. These year types are
built atop their definitions in the lubridate
package, where year()
is the commonly understood definition of
a year. The other definitions from the lubridate
package are quoted here:
isoyear()
returns years according to the ISO 8601 week calendar.
epiyear()
returns years according to the epidemilogical week calendars.
A schedule object.
my_dates <- seq(from = as.Date("2000-01-01"),
to = as.Date("2005-01-01"),
by = "1 year")
happen(in_year(2000), my_dates)
happen(in_year(2000, 2002), my_dates)
happen(in_year(2000:2002), my_dates)
happen(in_year(2000:2002, 2005), my_dates)
happen(in_isoyear(2004), my_dates)
head(schedule(in_year(2000), 20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.