Learn R Programming

dtwSat (version 0.2.8)

getDatesFromDOY: Get dates from year and day of the year

Description

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

Usage

getDatesFromDOY(year, doy)

Value

A Dates object.

Arguments

year

A vector with the years.

doy

A vector with the day of the year. It must have the same length as year.

Author

Victor Maus, vwmaus1@gmail.com

References

Maus:2019dtwSat

Maus:2016dtwSat

See Also

shiftDates

Examples

Run this code
year = c(2000, 2001)
doy = c(366, 365)
dates = getDatesFromDOY(year, doy)
dates

Run the code above in your browser using DataLab