cs_filter_count: Remove Negative Counts

Description Usage Arguments Value Examples

View source: R/filter.R

Description

Removes the row that contains -1 in a specified column, indicating that the charge described in that observation has either been deemed unfounded or has been up-coded. For example, a victim of an aggravated assault dies, and the charge is changed to homicide.

Usage

1

Arguments

.data

A tibble or data frame

var

the name of the column

Value

A subset object with rows containing -1 removed

Examples

1
2
3
4
5
# load example data
testData <- january2018

# subset data to remove negative counts
testData <- cs_filter_count(testData, var = count)

compstatr documentation built on July 8, 2020, 7:34 p.m.