apply_precomputations: Apply precomputations to data

Description Usage Arguments Value

View source: R/apply_precomputations.R

Description

Apply a specified set of precomputation rules to preprocessed patient survey data

Usage

1
apply_precomputations(data, precomputations_list)

Arguments

data

A data.frame containing the preprocessed patient survey data.

precomputations_list

A list of named precomputations. Each component is also a list containing a computation rule .$expr and value labels .$label.

Value

This takes the patient survey data and performs the specified precomputations by adding new columns equal to the number of precomputations to the data set. Each new column is named after one precomputation and filled with values as obtained from the corresponding expression .$expr applied (rowwise) to the data set. The extended survey data set is returned as a data.frame.


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