Skip to contents

Given a REDCap data dictionary, enumerate every slider field in that data dictionary including select choices, min and max values, and add a mean and standard deviation derived from the min and max values.

Usage

get_slider_fields(metadata)

Arguments

metadata

A REDCap data dictionary

Value

A long dataframe with these columns

field_name

REDCap field name

form_name

REDCap form name

field_type

REDCap field type

select_choices_or_calculations

RedCap select_choices_or_calculations field

text_validation_min

REDCap text validation min

text_validation_max

REDCap text validation max

mean

mean of data to be generated. This is derived from the allowed range of values

sd

standard deviation of data to be generated. This is derived from the allowed range of values

Examples

if (FALSE) { # \dontrun{
slider_fields <-
  get_slider_fields(metadata_to_populate)
} # }