Learn R Programming

tr.iatgen (version 1.0.0)

translate.qsf: Translate iatgen generated QSF file

Description

Read-in iatgen generated QSF file and translated it to a target language specified by user either from the list of available languages included in tr.iatgen package or using the custom supplied translation file.

Usage

translate.qsf(file, lang, lang_file = NULL, src_lang = "en", dst_file = NULL)

Value

Translated file path/location (class: character)

Arguments

file

qsf file

lang

Target language (abbreviation).

lang_file

CSV file containing custom translation.

src_lang

Source language -- "en" for english is the only supported one.

dst_file

save the translated file as. If NULL temporary file will be created.

Examples

Run this code
# example code
my_qsf_file <- system.file("examples/iat-flowins.qsf", package = "tr.iatgen")
translate.qsf(file = my_qsf_file, lang = "pt-pt")

Run the code above in your browser using DataLab