eml_translate_factors: Translate factors into their meanings

Description Usage Arguments Value Examples

Description

Translate factors into their meanings

Usage

1
eml_translate_factors(df, eml, keep = FALSE, which_table = NULL)

Arguments

df

Data frame

eml

eml metadata

keep

Whether to keep the columns with codes. If FALSE, the meanings replace the factors previous codes.

which_table

for which table to retrieve the factors, if there are several tables (entityName)

Value

A data.frame with translated factors

Examples

1
2
3
4
data("animals_eml")
data("animals_data")
eml_translate_factors(df = animals_data, eml = animals_eml, keep = FALSE)
eml_translate_factors(df = animals_data, eml = animals_eml, keep = TRUE)

masalmon/eml.tools documentation built on May 21, 2019, 12:40 p.m.