dot-preprocess: Preprocess data

Description Usage Arguments Value

Description

Our field names in Redcap have a lot of information in them, but some of them don't need to be used by the researcher at all. This removes some redundant information that's common to all instruments and also calls additional instrument-specific functions as needed. For example, checkbox matrices in redcap append ___X to the field name, but what X means will vary from instrument to instrument.

Usage

1
.preprocess(inst_data, inst_prefix, inst_name)

Arguments

inst_data

A single instrument's data

inst_prefix

The prefix for this instrument

inst_name

The name for this instrument

Value

A smaller dataframe with some columns renamed depending on the instrument provided


tsostarics/anrlab documentation built on Dec. 13, 2021, 10:11 a.m.