UCR.ColumnNames (version 0.1.0)

UCR.OffenseNames: Uniform Crime Report Column Name Fixer

Description

Uniform Crime Report Column Name Fixer

Usage

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

Run this code
# 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)

Run the code above in your browser using DataCamp Workspace