Learn R Programming

Rnightlights (version 0.1.2)

listCtryNlData: List available data

Description

List available data. If source is "local" it lists data cached locally. If source is remote lists available data on the remote repository.

Usage

listCtryNlData(ctryCodes = NULL, nlPeriods = NULL, nlTypes = NULL,
  source = "local")

Arguments

ctryCodes

A character vector of ctryCodes to filter by

nlPeriods

A character vector of nlPeriods to filter by

nlTypes

A character vector of nlTypes to filter by

source

Character string. Whether to check data availability "local" or "remote" Not in use.

Value

a list of countries and the periods and stats for each

Examples

Run this code
# NOT RUN {
#list all data
listCtryNlData()

#list all data available for KEN
listCtryNlData(ctryCodes = "KEN")

#list all VIIRS data available for ECU
listCtryNlData(ctryCodes = "ECU", nlTypes = "VIIRS")

#list available OLS data for KEN and RWA in 2012 & 2013
listCtryNlData(ctryCodes = c("KEN","RWA"), nlPeriods = c("2012", "2013"), nlTypes = "OLS")

# }

Run the code above in your browser using DataLab