View source: R/likert_transform.R
likert_transform | R Documentation |
This function allows to directly transform any collected data in Likert Scale format to numerical values. The default function is built for Likert Scales in either German or English and with 5 points. However, using the other variable, it is possible to code for any kind of repetitive text inputs.
likert_transform(
data,
type,
name,
lang,
other,
export = TRUE)
data |
a data frame with individual participants in rows and different measures in columns. |
type |
type of entered data: either data frame (default) or vector |
name |
name of the analysis to specify the output file. |
lang |
language of the Likert scale in case either the standard 5 point Likert scales are used. |
other |
Alternative input values. See example below. |
export |
TRUE if a CSV file with the modified data should be exported, FALSE if not. |
# For a questionnaire in German
likert_transform(data = data, type = "dataframe", name = "Engagement", lang = "de", export = TRUE)
# For various text fragments
likert_transform(data = data, type = "vector", name = "Engagement", other = c("yes", "no", "maybe"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.