Learn R Programming

Rnightlights (version 0.1.2)

nlRange: Create a range of nlPeriods

Description

Create a range of nlPeriods. Autodetects the type of nlPeriod and creates a character vector of nlPeriods filling in the intermediate nlPeriods. NOTE: Both start and end range must be valid and of the same type i.e. "OLS" years or "VIIRS" yearMonths

Usage

nlRange(startNlPeriod, endNlPeriod)

Arguments

startNlPeriod

the nlPeriod start

endNlPeriod

the nlPeriod end

Value

character vector of nlPeriods

Examples

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

#get VIIRS yearMonths between Apr 2012 and Dec 2014
nlRange("201204", "201412")

# }

Run the code above in your browser using DataLab