Description Usage Arguments Value Examples
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.
1 2 3 | insertNlDataCol(ctryNlDataDF, dataCol, nlStat, nlPeriod, nlType,
configName, multiTileStrategy, multiTileMergeFun,
removeGasFlares = TRUE)
|
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 |
the updated dataframe
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.