dot-preprocess: Preprocess data

.preprocessR Documentation

Preprocess data

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

.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 Nov. 6, 2022, 3:54 a.m.