add_section_variables: Add unanswered questions within a section.

View source: R/data-gather-clean.R

add_section_variablesR Documentation

Add unanswered questions within a section.

Description

Uses 'lookup_table' data to add in questions within a section that were unanswered (and therefore missing from the original JSON data).

Usage

add_section_variables(data, lookup_table)

Arguments

data

Dataframe with columns "section", "variable", and "exp_num".

lookup_table

Dataframe with columns "section", "step", "variable" , and "label" used for user-friendly section and variable display. "step" maps desired "section" names. "label" maps desired "variable" names.


Sage-Bionetworks/stopadforms documentation built on Aug. 31, 2024, 11:53 p.m.