get_available: Get available variable values localized in current language

Description Usage Arguments Value Examples

View source: R/lookup_f.R

Description

Get available variable values localized in current language

Usage

1
get_available(variable = NULL, aux = NULL, is_removal = FALSE)

Arguments

variable

character vector pointing at the tabled variable to look up. One of crop, crop by group, crop by part group, crop type, part, drainage, soil texture, organic fertilizer, frequency, previous crops, crop class, languages or NULL (default).

aux

character vector useful to pass the part when variable is "crop by part group"

is_removal

boolean value useful to select only crops featuring removal coefficients, for variable assuming values "crop", "crop by group", "crop by part group", and "part"

Value

a character vector of available tabled variable values, a list of variable values (when variable is "group_crop"), or a character vector of available variables to be looked up (when variable is NULL), or NULL when no matching variables were passed.

Examples

1
2
head(get_available("crop"))
get_available("languages")

mbask/fertplan documentation built on July 3, 2020, 12:01 p.m.