View source: R/read_textdata.R
read_env_pressures | R Documentation |
Returns the included data source env_pressures
as a
tibble
.
Names, shortnames, explanations and optional remarks from
namelist
are added,
in English by default.
read_env_pressures(
path = pkgdatasource_path("textdata/env_pressures", ".yml"),
file = "env_pressures",
file_namelist = "namelist",
lang = "en"
)
path |
Location of the data sources |
file |
The filename of the |
file_namelist |
The filename of the |
lang |
An
IETF BCP 47 language tag, such as |
env_pressures
is a data source in the
vc-format which provides
a checklist of environmental pressures, represented by codes, together
with the pressure-class and the textual explanation.
read_env_pressures()
reads the env_pressures
data
source, adds
human-readable attributes and returns it as a
tibble
.
A tibble is a data frame that makes working in the tidyverse a little
easier.
By default, the data version delivered with the package is used and English
text (lang = "en"
) is returned for names of environmental pressures and
pressure-classes, and for textual explanations and remarks.
The env_pressures
data frame as a tibble
,
with human-readable text added for environmental pressures,
pressure-classes and textual explanations and remarks
according to the lang
argument.
The tibble has 35 rows and 7 variables.
See env_pressures
for documentation of the data-source's contents.
See namelist
for the link between codes or other identifiers
and the corresponding text.
The human-readable attributes are represented by the following variables:
ep_abbrev
A (language-dependent) abbreviation (alternative code)
of the environmental pressure.
Is a factor with the level order coinciding with that of
ep_code
.
ep_name
The name of the environmental pressure.
Is a factor with the level order coinciding with that of
ep_code
.
ep_class_name
The name of the environmental pressure's class.
Is a factor with the level order coinciding with that of
ep_class
.
explanation
An explanation of the environmental pressure.
remarks
Optional remarks about the environmental pressure.
read_env_pressures()
read_env_pressures(lang = "nl")
env_pressures
Other reading functions for n2khab-referencelists:
read_namelist()
,
read_types()
read_env_pressures()
read_env_pressures(lang = "nl")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.