ecoval.translate {ecoval}R Documentation

Translates a Word Given a Dictionary

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

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

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

[Package ecoval version 1.2.9 Index]