Learn R Programming

RYandexTranslate (version 1.0)

translate: Translates text to the specified language

Description

Translates text to the specified language

Usage

translate(api_key, text = "", lang = "")

Arguments

api_key
yandex API key
text
The text to translate.The maximum size of the text being passed is 10000 characters.
lang
The translation direction.You can use any of the following ways to set it:As a pair of language codes separated by a hyphen ("from"-"to"). For example, en-ru indicates translating from English to Russian.As the final language code (for example, ru). In th

Value

  • data frame giving translated text

Examples

Run this code
data=translate(api_key,text="how are you?",lang="hi")

Run the code above in your browser using DataLab