View source: R/fe_species_tum_wwk_long.R
summary.fe_species_tum_wwk_long | R Documentation |
Produces a summary for a fe_species_tum_wwk_long object in the same style as
R does for factors. Actually, after some conversions
summary.factor
is called by this function. The species naming
in the summary depends on the parameter spec_lang
.
## S3 method for class 'fe_species_tum_wwk_long'
summary(
object,
spec_lang = options("fe_spec_lang")$fe_spec_lang,
maxsum = 100L,
...
)
object |
Object of class |
spec_lang |
Choice of how species (group) names or id's are displayed in
the summary. Supported choices are "code" (displays the species codes as
they are), "eng" (English species names), "ger" (German species names), and
"sci" (scientific species names). The names and the codes refer to the
species coding given in the object's attribute |
maxsum |
Same as parameter |
... |
Other parameters (not used) |
A named vector in the same style as returned by
summary.factor
# Construct some species id vector
spec_ids <- c(
rep(fe_species_tum_wwk_long(c("10", "60", "87", "811")), each = 15),
NA, NA
)
summary(spec_ids)
spec_ids |> summary()
spec_ids |> summary(spec_lang = "eng")
# Usual application: Set option for species code output
# Any summary of an fe_species object will use the last setting of the
# option
options(fe_spec_lang = "sci")
spec_ids |> summary()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.