translate_full: Translate words into English or Chinese with more information

Description Usage Arguments Value Examples

View source: R/translate_full.R

Description

When you pass in a vector consisting of an English or Chinese words, this function will calls the Youdao translation open API for R to return the corresponding type of Chinese or English representation. Compare to translate function, this function can get more useful translation information.

Usage

1

Arguments

x

A vector made up of English or Chinese words

Value

A list made up of Chinese or English words

Examples

1
2
3
4
5
6
# Example-1
translate_full("apple")

# Example-2
x <- c("apple", "banana", "pear", "I love you")
translate_full(x)

ecce documentation built on Jan. 18, 2022, 1:10 a.m.