Learn R Programming

Rnightlights (version 0.1.2)

getCtryNlDataFnamePath: Get the full path to the file containing the country data

Description

Get the full path to the file containing the country data

Usage

getCtryNlDataFnamePath(ctryCode)

Arguments

ctryCode

character string The ctryCode of interest

Value

Character string the full path to the data file of a country

Examples

Run this code
# NOT RUN {
#get the full path to the file containing data for KEN
getCtryNlDataFnamePath("KEN")

# }
# NOT RUN {
ctryDF <- read.csv(getCtryNlDataFnamePath("KEN"))
 #returns DF with nightlight data for the country
 
# }
# NOT RUN {
#@export only due to exploreData() shiny app
# }

Run the code above in your browser using DataLab