convert_iso3166: Convert answer codes

View source: R/convertIso3166.R

convert_iso3166R Documentation

Convert answer codes

Description

Convert actual answer codes in a result data set from one language to the other. Requires a mapping table produced by map_iso3166. If an answer code does not match, the original code will be returned.

Usage

convert_iso3166(from.acode, from.alang, iso3166map)

Arguments

from.acode

Specifies the answer code to be converted. Usually a vector of variable (column) which stores answer codes regarding nationality or country.

from.alang

Specifies the specific language of the labels to be converted. This is synonymous to the language of the submission (startlanguage)

iso3166map

Data frame which maps answer codes from one language to the other. @seealso map_iso3166.

Value

Vector of answer codes in the target language.


jmueller17/LimeRLabel documentation built on May 2, 2023, 7:13 p.m.