saveCtryNlData: Save a data frame of a country's data to the appropriate...

Description Usage Arguments Value Examples

View source: R/ctrynldata.R

Description

Saves the data frame created from processNlCountry* to the appropriate location. Note: This function does not perform any validation error checking and will overwrite existing data. Use with caution.

Usage

1
2
3
4
5
6
7
8
saveCtryNlData(
  ctryNlDataDF,
  ctryCode = NULL,
  admLevel,
  gadmVersion = pkgOptions("gadmVersion"),
  gadmPolyType = pkgOptions("gadmPolyType"),
  custPolyPath = NULL
)

Arguments

ctryNlDataDF

dataframe with the country data to save

ctryCode

the ctryCode to which the data belongs

admLevel

the country admin level to process

gadmVersion

The GADM version to use

gadmPolyType

The format of polygons to download from GADM

custPolyPath

Alternative to GADM. A path to a custom shapefile zip

Value

None

Examples

1
2
3
4
## Not run: 
Rnightlights:::saveCtryNlData(ctryNlDataDF, ctryCode)

## End(Not run)

chrisvwn/Rnightlights documentation built on Sept. 7, 2021, 1:44 a.m.