Learn R Programming

Rnightlights (version 0.2.3)

deleteNlDataCol: Delete an aggregate nightlight data column in a country nightlights dataframe

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

deleteNlDataCol(ctryCode = NULL, admLevel, nlType, nlPeriod, statType,
  gadmVersion = pkgOptions("gadmVersion"), custPolyPath = NULL)

Arguments

ctryCode

country with the data column to remove

admLevel

admLevel to process

nlType

the type of nightlight data

nlPeriod

the nlPeriod that the dataCol belongs to

statType

the stat which produced the dataCol vector

gadmVersion

The GADM version to use

custPolyPath

Alternative to GADM. A path to a custom shapefile zip

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
ctryNlDataDF <- Rnightlights:::deleteNlDataCol(ctryNlDataDF, 
     "VIIRS.M", "201409", "sum")
     
# }
# NOT RUN {
# }
# NOT RUN {
Rnightlights:::deleteNlDataCol(ctryNlDataDF, 
    "OLS.Y", "2012", "mean")
    
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab