View source: R/time_categories.R
| yday_dbl | R Documentation |
This function computes the Julian day on inputted times/dates as a fraction of the total number of days in each year.
yday_dbl(time)
time |
A vector of time(s) of class |
The function returns a number for each element in time which is the Julian day as a fraction of the total number of days in that year.
Edward Lavender
# Compare the start of a non-leap and leap year:
yday_dbl(as.Date("2015-01-01"))
yday_dbl(as.Date("2016-01-01"))
# The end of the year
yday_dbl(as.Date("2015-12-31"))
yday_dbl(as.Date("2015-12-31"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.