Skip to contents

Removes inactive records from the input data frame. Data frame must contain an `ACTIVE` field coded with "Yes" or "No".

Usage

remove_inactive_records(df, active = TRUE)

Arguments

df

data frame; A standard risk analysis data frame.

active

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

Value

A data frame with the inactive records removed.

Examples

# Get test data
db_risk <- rarr::db_risk

risk_active <- remove_inactive_records(db_risk)