T_hss_translate: Translate HSS content from Arabic to English

View source: R/T_hss_translate.R

T_hss_translateR Documentation

Translate HSS content from Arabic to English

Description

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.

Usage

T_hss_translate(df, apikey)

Arguments

df

the dataframe containing Arabic text columns. These columns are expected to end in "_ar"

Value

A dataframe containing Arabic text columns and their English translations. #@seealso hss_merge_translated


RenRMT/hsstools documentation built on April 14, 2025, 7:10 p.m.