Description Usage Arguments Details Value Examples
returns a character() deduced from words replacing some of the words by the translation proposed into translation. A component of words can comprise several common words.
1 2 3 |
text3translate(words,translation,
left=TRUE,eline=TRUE)
|
words |
A character() of words . |
translation |
A named character vector containing the translations through the names: names(translation)[i] becomes translation[i]. |
left |
When TRUE non translated words are left. |
eline |
Indicates if resulting empty lines must be left. |
When a word has no translation, it is left as it is when left is TRUE, suppressed if not. Initial spacing is not respected, ending blanks are suppressed and no repeated blanks are separating the final words.
The resulting character after translation.
1 2 3 4 5 6 |
tra <- c(a="A",e="E",i="I",o="O",u="U")
text3translate(letters,tra);
text3translate(letters,tra,FALSE);
text3translate(letters,tra,FALSE,FALSE);
text3translate(rbsa0$text3$v,c(The="xxx",the="xxx"));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.