View source: R/translate_faunabr.R
| translate_faunabr | R Documentation |
This function translates information in the "lifeForm", "origin", "habitat", "taxonRank", and "taxonomicStatus" columns between Portuguese and English.
translate_faunabr(data, map_list = NULL, to = "en")
data |
(data.frame) the data.frame imported with the
|
map_list |
(list) A list of data.frames used for translation. The default
is NULL, which means it uses |
to |
(character) The target language for translation. Available options are "en" to translate from Portuguese to English, and "pt_br" to translate from English to Portuguese. The default is "en". |
A data.frame with the values in the "lifeForm", "origin", "habitat", "taxonRank", and "taxonomicStatus" columns translated.
data("fauna_data") #Load data example (in English)
#Translate to Portuguese
fauna_portugues <- translate_faunabr(data = fauna_data, to = "pt_br")
# See attributes of lifeForm in Portuguese
fauna_attributes(fauna_portugues, attribute = "lifeForm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.