Learn R Programming

ebirdst (version 0.3.3)

convert_classes: Converts cryptic cover class names to readable land cover names

Description

Internal function that converts the cryptic predictor class names to readable land cover names.

Usage

convert_classes(x, by_cover_class = FALSE, pretty = FALSE)

Arguments

x

character; vector of land cover variable names to convert.

by_cover_class

logical; whether to replace FRAGSTATS cover class name with a name for the cover class as whole.

pretty

logical; whether to convert from capital case to title case.

Value

A vector of converted names.

Examples

Run this code
# NOT RUN {
predictors <- c("MCD12Q1_LCCS1_FS_C1_1500_ED", "MOD44W_OIC_FS_C3_1500_ED",
                "ELEV_SD")
ebirdst:::convert_classes(predictors, pretty = TRUE)
# }

Run the code above in your browser using DataLab