mv_reformat: Reformat Data

Description Usage Arguments Details Value

Description

Converts raw counts to either percentage or proportion formats.

Usage

1
mv_reformat(.data, statistic, format, output = "long")

Arguments

.data

A tbl created with mv_get_agency

statistic

The statistic to reformat

format

Either "pct" for percentages or "prop" for propotions.

output

Either "long" or "wide"

Details

The statistics that can be reformatted are as follows:

"Stops" or "Stop Rate"
"Searches" or "Search Rate"
"Arrests" or "Arrest Rate"
"Contraband", "Hit Rate", or "Contraband Hit Rate"

Value

A tibble with the reformatted data


slu-openGIS/movsr documentation built on June 4, 2019, 11:52 a.m.