View source: R/simplify_utilities.R
gather_languages | R Documentation |
This function extracts the values for a preferred language from a list containing values in multiple languages.
gather_languages(input_list, language = "all", silent = FALSE)
input_list |
A list with character values containing (or not) sublists for each language. |
language |
The short name (e.g. "en", "de", "fr") of the language
that is preferred for the fields. Special value "all" (the default) can be
used to return a concatenated string of all available languages.
|
silent |
TRUE/FALSE: Should gather_languages() issue messages and warnings? |
A character vector containing the values in the preferred language.
This function is used by: simplify_idaifield()
## Not run:
input_list <- list(list("en" = "English text", "de" = "Deutscher Text"),
list("en" = "Another english text", "de" = "Weiterer dt. Text"))
gather_languages(input_list, language = "de")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.