remove_inactive_records: Remove Inactive Records

View source: R/remove_inactive_records.R

remove_inactive_recordsR Documentation

Remove Inactive Records

Description

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)


MVR-GIS/rarr documentation built on March 4, 2023, 11:47 p.m.