Learn R Programming

Rnightlights (version 0.1.2)

getCtryNlDataFname: Check if a month number is valid for a given nightlight type

Description

Get the name of the data file. This function can be altered to name the file as required and consistently retrieve the name. Used in the function getCtryNlDataFnamePath to concat the directory path and this filename. Currently all nlTypes are stored in one file. Can be altered to separate VIIRS and OLS data files for example.

Usage

getCtryNlDataFname(ctryCode)

Arguments

ctryCode

The ctryCode of interest

Value

Character filename of the country data file

Examples

Run this code
# NOT RUN {
ctryCode <- "KEN"
# }
# NOT RUN {
getCtryNlDataFname(ctryCode)
# }
# NOT RUN {
 #returns name of the ctry data file

# }

Run the code above in your browser using DataLab