Uniform Crime Report Column Name Fixer

Share:

Description

Uniform Crime Report 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 dataset.
example <- data.frame(V1 = 1:10, V2 = 2:11, V8 = "example")
names(example)
example <- UCR.OffenseNames(example)
names(example)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.