Build status Build Status codecov

Package in construction for using EML (Ecological Metadata Language) in data analysis, currently only one function. For creating a new EML, see the rOpenSci EML package. This package will take advantage from the fact that EML is machine readable to make some analysis steps easier. Any suggestion or contribution is welcome, but please note that this package has a code of conduct.

Translating factors into their meanings

When the EML only has one table

library("eml.tools")
data("animals_eml")
data("animals_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)

When the EML only has several tables

This is the case if the EML documents a database. In this case, we need to use the entityName of the table for which we want to perform the translation.

library("eml.tools")
data("animals_db_eml")
data("animals_data")
animals_data
eml_translate_factors(df = animals_data,
                      eml = animals_db_eml,
                      which_table = "english_animals",
                      keep = FALSE)
eml_translate_factors(df = animals_data,
                      eml = animals_db_eml,
                      which_table = "english_animals",
                      keep = TRUE)


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