View source: R/ecoval.translate.r
| ecoval.translate | R Documentation |
Translates a word given as the first argument using a dictionary provided as the second argument of the function. The dictionary consists of a character vector of translated words labelled by the words in the original language. If no translation is found, the given word in the original language is returned.
ecoval.translate(word,dictionary)
word |
A single word to be translated. |
dictionary |
Vector of translated words labelled by the words in the original language. |
The function returns the translated word.
ecoval.dict.
ecoval.translate("x",c(x="X",y="Y",z="Z"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.