.prep_vas: Data checking/preparation: VAS variable
Description
The function prepares the data for VAS (Visual Analogue Scale) analyses.
Usage
.prep_vas(df, name)
Value
A modified data frame with the VAS score renamed to "vas". If any checks fail (e.g. column is not numeric), an error message is displayed and the function is stopping.
Arguments
df
A data frame.
name
Column name in the data frame that holds the VAS score. The column can only contain integers or NAs