dictionary: Access the FEBR dictionary

View source: R/dictionary.R

dictionaryR Documentation

Access the FEBR dictionary

Description

Download definitions from the dictionary of the Data Repository of the Brazilian Soil. For each field, the dictionary includes an identification code and name, the standard measurement unit, recommended number of decimal places, type of data, and description of the respective analytical method. The dictionary is used to standardize the data contained in a dataset.

Usage

dictionary(table, variable, unit, precision, active = NULL)

Arguments

table

(optional) Character vector indicating one or more table IDs that should be used to filter the dictionary. Accepted values: "metadado", "versionamento", "observacao", and "camada".

variable

(optional) Character vector indicating one or more variables that should be used to filter the dictionary. Accepts both specific identification codes, e.g. "ferro_oxalato_icpoes", as well as general identification codes, e.g. "ferro".

unit

(optional) Character vector indicating one or more measurement units that should be used to filter the dictionary. For example, ' "g/kg", "g/cm^3", and "cmolc/kg".

precision

(optional) Integer vector indicating one or more number of decimal places that should be used to filter the dictionary.

active

(optional) Logical value indicating whether active (active = TRUE), inactive (active = FALSE) or any (active = NULL, default) field should be returned.

Value

An object of class data.frame with definitions for the selected fields.

Author(s)

Alessandro Samuel-Rosa alessandrosamuelrosa@gmail.com

References

Teixeira, P. C., Donagemma, G. K., Fontana, A., Teixeira, W. G. (2017) Manual de Métodos de Análise de Solo. Brasília: Embrapa.

See Also

The FEBR dictionary at https://docs.google.com/spreadsheets/d/1Dalqi5JbW4fg9oNkXw5TykZTA39pR5GezapVeV0lJZI

Examples

res <- dictionary(variable = "ferro")
head(res)

samuel-rosa/febr-package documentation built on April 20, 2022, 10:31 p.m.