Description Usage Arguments Value Examples
Uniform Crime Report Police Employee (LEOKA) Column Name Fixer
1 | UCR.LEOKANames(UCR_dataset)
|
UCR_dataset |
#' This is the data.frame containing data from the UCR "Police Employee (LEOKA)" dataset You may use any years from 1994-2014 |
#' 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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.