jdays: Compute daily time intervals for a given year

Description Usage Arguments Value Author(s) Examples

View source: R/jdays.R

Description

Computes daily values of year, month, day of the month, week of the year, and Julian days for the input years. This function accounts for leap years. February will have 29 days in leap years.

Usage

1
jdays(years)

Arguments

years

vector of years for which to compute values

Value

Returns a data frame that contains a record for each day of the year, 365 for non-leap years and 366 for leap years. If a vector of years is supplied, a "stacked" data frame of time intervals is returned.

For the weeks columns, the last week of the year contains an extra day (2 days in leap years). For the day8 column the last period only has 5 days.

Author(s)

Michael Malick

Examples

1
2
 jdays(1999)
 jdays(1999:2001)

michaelmalick/r-malick documentation built on May 22, 2019, 9:51 p.m.