convertCodes | R Documentation |
Apply conversion table, perform approriate checks and return result.
convertCodes(code, conversionTable, strict = T)
code |
character() with original codes |
conversionTable |
list() mapping code to converted code. |
strict |
logical() If true, execution halts at incomplete conversion tables. If false unmapped codes are set to NA. |
By default. This will stop with error if any codes can not be converted, or if any entries are NA. Require all codes (original and converted) to be character().
character() with converted codes
gearConversion <- list()
gearConversion["TBS"] <- "OTB"
gearConversion["TBN"] <- "OTB"
gearConversion["OTB"] <- "OTB"
convertCodes(c("TBS", "TBN", "OTB"), gearConversion)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.