Skip to contents

Wrangles an input `rel_risk_risk` data frame and prepares it for use by the the reporting functions in this package.

Usage

wrangle_rel_risk_risk(db_rel_risk_risk, active = TRUE)

Arguments

db_rel_risk_risk

data frame; A standard `rel_risk_risk` data frame.

active

logical; Return only active records? TRUE returns active records, FALSE returns inactive records. Default = TRUE.

Value

A formatted data frame suitable for use by the report functions.

Examples

# Get test data
db_rel_risk_risk <- rarr::db_rel_risk_risk

# Format rel_risk_risk
rel_risk_risk <- wrangle_rel_risk_risk(db_rel_risk_risk)