50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


Rnightlights (version 0.2.4)

getAllNlPeriods: Generate a list of all possible nlPeriods for a given nlType

Description

Generate a list of all possible nlPeriods for a given nlType

Usage

getAllNlPeriods(nlTypes)

Arguments

nlTypes

types of nightlights to process

Value

a named list of character vector nlPeriods

Examples

Run this code
# NOT RUN {
getAllNlPeriods("OLS.Y")
 #returns a vector of all years from 1994 to 2013

getAllNlPeriods("VIIRS.M")
 #returns a vector of all yearMonths from 201401 to present

getAllNlPeriods(c("OLS.Y", "VIIRS.Y"))
 #returns a list with 2 named vectors, one for each annual nlType
# }

Run the code above in your browser using DataLab