Get dates from year and day of the year

Share:

Description

This function retrieves the date corresponding to the ginven year and day of the year.

Usage

1
getDatesFromDOY(year, doy)

Arguments

year

An vector with the years.

doy

An vector with the day of the year. It must have the same lenght as year.

Value

A Dates object.

Author(s)

Victor Maus, vwmaus1@gmail.com

See Also

shiftDates

Examples

1
2
3
4
year = c(2000, 2001)
doy = c(366, 365)
dates = getDatesFromDOY(year, doy)
dates

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.