supplement_cwres: Add 'CWRES' column from 'CWRESI' if needed

View source: R/utils.R

supplement_cwresR Documentation

Add CWRES column from CWRESI if needed

Description

The intention here is to make sure there is a CWRES column if applicable so that the cwres variant functions can be used rather than the cwresi variants.

Usage

supplement_cwres(x)

Arguments

x

a data frame

Details

If CWRESI was tabled out, then a CWRES column is added. No change is made in case there is already a CWRES column. This function is called with every call to a cwresi variant, so, ideally, the user can call this function once upon loading the data.


metrumresearchgroup/pmplots documentation built on Feb. 13, 2025, 4:15 p.m.