rename_schema: Changes the name of the labels and choices column in an ODK...

Description Usage Arguments Value

View source: R/identify_choice_questions.R

Description

This function to give the column used in another function a uniform name so that no matter what language (or no language at all) is chosen, all functions still work as they refer to the uniform name given by this function.

Usage

1
rename_schema(df, lang = NULL, choice_col = NULL, label_col = NULL)

Arguments

df

Data frame containing the ODK form schema

lang

String specifying the language of the choice/label column which is to be changed. Optional, defaults to NULL.

choice_col

String specifying the choices column that is to be changed, defaults to NULL.

label_col

String specifying the labels column that is to be changed, defaults to NULL.

Value

Data frame


lucidviews/repvisForODK documentation built on Feb. 13, 2022, 9:50 p.m.