UCR.OffenseNames: Uniform Crime Report Offenses and Clearances Column Name...

Description Usage Arguments Value Examples

Description

Uniform Crime Report Offenses and Clearances Column Name Fixer

Usage

1
UCR.OffenseNames(UCR_dataset)

Arguments

UCR_dataset

This is the data.frame containing data from the UCR "Offenses Known and Clearance by Arrest" dataset You may use any years from 1998-2014

Value

Returns the same data.frame as inputted but with column names corrected as per the UCR "Offenses Known and Clearance by Arrest" codebook for years 1998-2014

Examples

1
2
3
4
5
6
# This is an example data.frame with the same column names
# as the real UCR offenses and clearances, dataset.
example <- data.frame(V1 = 1:10, V2 = 2:11, V8 = "example")
names(example)
example <- UCR.OffenseNames(example)
names(example)

jacobkap/UCR.ColumnNames documentation built on May 18, 2019, 9:04 a.m.