View source: R/remove_inactive_records.R
remove_inactive_records | R Documentation |
Removes inactive records from the input data frame. Data frame must contain an 'ACTIVE' field coded with "Yes" or "No".
remove_inactive_records(df, active = TRUE)
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. |
A data frame with the inactive records removed.
# Get test data db_risk <- rarr::db_risk risk_active <- remove_inactive_records(db_risk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.