Skip to contents

The display label of scored components

Usage

component_label(key, v11 = FALSE)

Arguments

key

character; component keys (sp_cat values or primprod).

v11

logical; FALSE (default) returns the labels v1-v10 published (label_v10), TRUE the v11 names (label: primary_producer is "Flora", primprod "Productivity").

Value

a character vector, NA for a key the registry does not list.

Examples

component_label(c("primary_producer", "bird"))
#> [1] "Primary Producers" "Seabirds"         
component_label("primary_producer", v11 = TRUE)
#> [1] "Flora"