View source: R/T_hss_translate.R
T_hss_translate | R Documentation |
Translate the content of Arabic text columns from the HSS dataset to English. This function
uses the translateR package to connect to Google Cloud Services. An API key from a GCS account is required.
Translated columns are returned as a separate dataframe. This makes it possible to export the translated
columns to e.g. check the accuracy of translations. The extracted and translated columns can be re-inserted
into the original dataset using the hss_merge_translated
function.
T_hss_translate(df, apikey)
df |
the dataframe containing Arabic text columns. These columns are expected to end in "_ar" |
A dataframe containing Arabic text columns and their English translations.
#@seealso hss_merge_translated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.