translate: Translate English words into Chinese words

Description Usage Arguments Value Examples

View source: R/entcn.R

Description

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

Usage

1

Arguments

x

A English words or a vector made up of English words

Value

The Chinese words equivalent of English words

Examples

1
2
3
4
5
6
# Example-1
translate("English")

# Example-2
x <- c("father", "mother", "son")
translate(x)

entcn documentation built on Jan. 16, 2022, 1:06 a.m.