GetVariableNamesInRedcapDataset: Get the names of variables in a dataset based on REDCap...

get_vars_in_dataR Documentation

Get the names of variables in a dataset based on REDCap metadata

Description

Utility function that gets the name(s) of the variables in a redcap project.

Usage

get_vars_in_data(metadata, negative_char = "_")

Arguments

metadata

REDCap metadata

negative_char

checkbox expansion character for a negative checkbox level

Details

Using the redcap metadata, code is generated that extracts the names of the variables in the dataset.

Checkboxes are also munged to reflect what is in the repository.

Useful for metaprogramming.

Value

a character vector of the variable names in the dataset


smockin/RedcapData documentation built on Feb. 2, 2023, 3:19 a.m.