Learn R Programming

dtwSat (version 0.1.0)

getDatesFromDOY: Get dates from year and day of the year

Description

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

Usage

getDatesFromDOY(year, doy)

Arguments

year
An vector with the years
doy
An vector with the day of the year

Value

object of class Date

See Also

createTimeSequence and getModisTimeIndex

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