ecoval.translate: Translates a Word Given a Dictionary

Description Usage Arguments Value See Also Examples

View source: R/ecoval.translate.r

Description

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.

Usage

1
ecoval.translate(word,dictionary)

Arguments

word

A single word to be translated.

dictionary

Vector of translated words labelled by the words in the original language.

Value

The function returns the translated word.

See Also

ecoval.dict.

Examples

1
ecoval.translate("x",c(x="X",y="Y",z="Z"))

ecoval documentation built on Dec. 11, 2021, 9:40 a.m.