Learn R Programming

Rnightlights (version 0.2.4)

nlRange: Create a range of nlPeriods

Description

Create a range of nlPeriods. Returns a list of character vectors of nlPeriods filling in the intermediate nlPeriods. NOTE: Both start and end range must be valid and of the same type.

Usage

nlRange(startNlPeriod, endNlPeriod, nlType)

Arguments

startNlPeriod

the nlPeriod start

endNlPeriod

the nlPeriod end

nlType

the nlType

Value

character vector of nlPeriods

Examples

Run this code
# NOT RUN {
#get OLS years between 2004 and 2010
nlRange("2004", "2010", "OLS.Y")

#get VIIRS yearMonths between Jan 2014 and Dec 2014
nlRange("201401", "201412", "VIIRS.M")

# }

Run the code above in your browser using DataLab