deleteNlDataCol: Delete an aggregate nightlight data column in a country...

Description Usage Arguments Examples

Description

Delete an aggregate nightlight data column in a country nightlights dataframe. The number of elements in the vector MUST match the number of rows in the country dataframe.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
deleteNlDataCol(
  ctryCode = NULL,
  admLevel,
  nlType,
  configName,
  extension,
  multiTileStrategy,
  multiTileMergeFun,
  removeGasFlaresMethod,
  nlPeriod,
  nlStat,
  gadmVersion,
  gadmPolyType,
  custPolyPath = NULL
)

Arguments

ctryCode

country with the data column to remove

admLevel

admLevel to process

nlType

the type of nightlight data

configName

character the config short name of raster being processed

extension

character the extension of raster being processed

multiTileStrategy

character How to handle multiple tiles per nlPeriod

multiTileMergeFun

character The function to use to merge tiles

removeGasFlaresMethod

character The method to use to perform gas flare removal or NULL to disable

nlPeriod

the nlPeriod that the dataCol belongs to

nlStat

the stat which produced the dataCol vector

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
ctryNlDataDF <- Rnightlights:::deleteNlDataCol(ctryNlDataDF,
     "VIIRS.M", "201409", "sum")
     
## End(Not run)

## Not run: 
Rnightlights:::deleteNlDataCol(ctryNlDataDF,
    "OLS.Y", "2012", "mean")
    
## End(Not run)

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