Learn R Programming

Rnightlights (version 0.1.5)

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, nlType, nlPeriod, statType)

Arguments

ctryCode

country with the data column to remove

nlType

the type of nightlight data i.e. "OLS" or "VIIRS"

nlPeriod

the nlPeriod that the dataCol belongs to

statType

the stat which produced the dataCol vector

Examples

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

Run the code above in your browser using DataLab