Convert between Land Resource Region (LRR) or Major Land Resource Area (MLRA) Symbols and Names
Source:R/lrr-mlra-conversion.R
lrrmlra-symbol-conversion.Rd
Helper functions for converting between symbols and names associated with Land Resource Regions (LRR) or Major Land Resource Areas (MLRA) using the internal dataset lrrmlra
.
Usage
mlra_to_lrr(x)
mlra_to_mlraname(x)
mlraname_to_mlra(x)
lrr_to_mlra(x, simplify = TRUE)
lrr_to_lrrname(x)
lrrname_to_lrr(x)
lrrmlra_match(x, a)
Arguments
- x
character. Vector LRR or MLRA symbols or names.
- simplify
logical. If result is a list, and
x
is length1
, return a character vector. Default:TRUE
- a
character. Used only for
lrrmlra_match()
. Column name inlrrmlra
to matchx
against.
References
United States Department of Agriculture, Natural Resources Conservation Service. 2022. Land resource regions and major land resource areas of the United States, the Caribbean, and the Pacific Basin. U.S. Department of Agriculture, Agriculture Handbook 296. Available online: https://www.nrcs.usda.gov/resources/data-and-reports/major-land-resource-area-mlra
Examples
mlra_to_lrr(c("18", "22A"))
#> [1] "C" "D"
mlra_to_mlraname("18")
#> [1] "Sierra Nevada Foothills"
mlraname_to_mlra("Sierra Nevada and Tehachapi Mountains")
#> [1] "22A"
lrr_to_mlra("C")
#> [1] "14" "15" "16" "17" "18" "19"
lrr_to_lrrname("D")
#> [1] "Western Range and Irrigated Region"
lrrname_to_lrr("California Subtropical Fruit, Truck, and Specialty Crop Region")
#> [1] "C"