Skip to content

Instantly share code, notes, and snippets.

@abdu95
Created December 6, 2020 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdu95/200b726aa91b3fa77a3079d16d1e45cd to your computer and use it in GitHub Desktop.
Save abdu95/200b726aa91b3fa77a3079d16d1e45cd to your computer and use it in GitHub Desktop.
english_t <- c()
for (i in article) {
element <- translate(i, from = "ru", to = "en")
english_t <- c(english_t, element)
}
unlisted_result <- unlist(english_t, use.names=FALSE)
write(unlisted_result, "en_translated_article.txt")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment