UCR.LEOKANames: Uniform Crime Report Police Employee (LEOKA) Column Name...

Description Usage Arguments Value Examples

Description

Uniform Crime Report Police Employee (LEOKA) Column Name Fixer

Usage

1
UCR.LEOKANames(UCR_dataset)

Arguments

UCR_dataset

#' This is the data.frame containing data from the UCR "Police Employee (LEOKA)" dataset You may use any years from 1994-2014

Value

#' Returns the same data.frame as inputted but with column names corrected as per the UCR "Police Employee (LEOKA)" codebook for years 1994-1997 or years 1998-2014

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# This is an example with 1994-1997 LEOKA column names
example <- data.frame(V1 = 1:10, V2 = 2:11, V8 = "example", V6 = 1995)
names(example)
example <- UCR.LEOKANames(example)
names(example)

# This is an example with 1998-2014 LEOKA column names
example <- data.frame(V1 = 1:10, V2 = 2:11, V8 = "example", V6 = 2000)
names(example)
example <- UCR.LEOKANames(example)
names(example)

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