insertNlDataCol: Insert an aggregate nightlight data column in a country...

Description Usage Arguments Value Examples

Description

Insert 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
insertNlDataCol(ctryNlDataDF, dataCol, nlStat, nlPeriod, nlType,
  configName, multiTileStrategy, multiTileMergeFun,
  removeGasFlares = TRUE)

Arguments

ctryNlDataDF

dataframe with the country data to save

dataCol

the numeric vector to be inserted as a column

nlStat

the stat which produced the dataCol vector

nlPeriod

the nlPeriod that the dataCol belongs to

nlType

the type of nightlight data

configName

character the type of raster being processed

multiTileStrategy

character How to handle multiple tiles per nlPeriod

multiTileMergeFun

character The function to use to merge tiles

removeGasFlares

logical Whether to perform gas flare removal pre-processing

Value

the updated dataframe

Examples

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

## Not run: 
ctryNlDataDF <- Rnightlights:::insertNlDataCol(ctryNlDataDF, 
    dataCol, "mean", "2012", "OLS.Y")
    
## End(Not run)

Rnightlights documentation built on Aug. 29, 2019, 5:02 p.m.