preprocess_data: Apply category mappings

Description Usage Arguments Value

View source: R/preprocess_data.R

Description

Create a new data set from raw survey data by applying specified mappings of certain variables

Usage

1
preprocess_data(raw_data, mappings = NULL)

Arguments

raw_data

A data.frame containing the raw patient survey data.

mappings

A list containing the mapping specifications, i.e. points value mappings and affected data fields.

Value

Takes the survey data dat and applies the point mappings as listed in mappings$point_mappings and the replacement mappings in mappings$ausweichkategorien. Additional ID and meta_unit columns are also added to the output.


iqtigorg/iqtigprm documentation built on Dec. 20, 2021, 7:58 p.m.