Learn R Programming

Rnightlights (version 0.2.4)

newNlType: Convert pre-0.2.0 nlType names to their new names

Description

Convert pre-0.2.0 nlType names to their new names. Pre 0.2.0 has only 2 nlTypes i.e. OLS and VIIRS. They are renamed as follows:

  • OLS => "OLS.Y"

  • (VIIRS) => "VIIRS.M"

Usage

newNlType(oldNlType)

Arguments

oldNlType

character The old nlType i.e. "OLS" or "VIIRS"

Value

character The new nlType i.e. "OLS.Y" or "VIIRS.M"

Examples

Run this code
# NOT RUN {
Rnightlights:::newNlType("VIIRS")
 #returns "VIIRS.M"

# }

Run the code above in your browser using DataLab