MODIS (version 1.0.0)

transDate: MODIS Date Conversion and Testing

Description

This function converts a sequence of input dates to 'YYYY-MM-DD' and 'YYYYDDD'.

Usage

transDate(begin = NULL, end = NULL)

Arguments

begin

character. Begin date(s) of time series, see transDate. If not provided, this defaults to "1972-01-01".

end

character. End date of MODIS time series. If not provided, this defaults to Sys.Date().

Value

A list of begin and end dates formatted according to 'YYYY-MM-DD' (first two slots; class Date) and 'YYYYDDD' (second two slots; class character).

Examples

Run this code
transDate()
transDate(begin="2009.01.01")
transDate(end="2009.01.01")
transDate(begin="2009-01-01",end="2011.03.16")
               

Run the code above in your browser using DataLab