Learn R Programming

REDCapTidieR (version 1.2.3)

get_fields_to_drop: Determine fields included in REDCapR::redcap_read_oneshot output that should be dropped from results of read_redcap

Description

Determine fields included in REDCapR::redcap_read_oneshot output that should be dropped from results of read_redcap

Usage

get_fields_to_drop(db_metadata, form)

Value

A character vector of extra field names that can be used to filter the results of REDCapR::redcap_read_oneshot

Arguments

db_metadata

metadata tibble created by REDCapR::redcap_metadata_read

form

the name of the instrument containing identifiers

Details

This function applies rules to determine which fields are included in the results of REDCapR::redcap_read_oneshot because the user didn't request the instrument containing identifiers