getValues: Get Questionnaire Answers from Shiny Input and Append Them to...

Description Usage Arguments Value

View source: R/get_values.R

Description

Takes answers from the shiny input objects and appends them to a list. For this to work, pageList must be created with createPageList or have the same structure. If there are reversed scales in a questionnaire it will also reverse them.

Usage

1
getValues(pageList, nmrc, inputList)

Arguments

pageList

list. The page parameters, such as ids and text to display. Create this with createPageList.

nmrc

logical. If TRUE it is assumed that input was saved as numbers and as.numeric will be called on the vector after processing. This ensures that it's possible to e.g. calculate a mean of the vector later on. If FALSE values will be returned as characters.

inputList

The input object from the shiny app.

Value

A list containing the user inputs to the questionnaire.


mdsteiner/ShinyPsych documentation built on Feb. 12, 2022, 2:09 p.m.