crimeutils v0.1.0
0
Monthly downloads
A Comprehensive Set of Functions to Clean, Analyze, and Present Crime Data
A collection of functions that make it easier to understand crime (or other)
data, and assist others in understanding it. The package helps you read data
from various sources, clean it, fix column names, and graph the data.
Readme
Overview
The goal of crimeutils is to provide a set of helper functions to make common data tasks in criminology research - clean, explore, analyze, visualize - a bit easier.
Installation
You can install the released version of crimeutils from CRAN with:
install.packages("crimeutils")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("jacobkap/crimeutils")
Usage
library(crimeutils)
Functions in crimeutils
Name | Description | |
%>% | Pipe operator | |
make_state_abb | Returns abbreviations of state name input. | |
indicate_outliers | Creates new columns to indicate which values are outliers based on the average value. | |
make_barplots | Make a nice-looking barplot. | |
capitalize_words | Capitalizes the first letter of every word | |
make_desc_stats_table | Create a descriptive statistics table from numeric variables | |
make_latex_tables | Creates a .tex file with LaTeX code to create a table from an R data.frame. | |
scale_color_crim | A set of colorblind friendly colors for graphs. | |
pad_decimals | Pad decimal places with trailing zeros. | |
scale_fill_crim | A set of colorblind friendly fill colors for graphs. | |
time_series_data_graph | Create a PDF with one time-series graph for each group in the data. | |
scatterplot_data_graph | Create a PDF with one scatterplot for each group in the data. | |
make_stat_count_plots | Make a nice-looking stat_count (similar to barplot) plot. | |
theme_crim | A minimalist theme designed for graphics in academic research | |
scale_linetype_crim | A set of linetypes | |
ucr_constant_reporter_oris | Get ORIs that consistently report their data every year. | |
No Results! |
Last month downloads
Details
License | MIT + file LICENSE |
LazyData | TRUE |
URL | https://github.com/jacobkap/crimeutils |
BugReports | https://github.com/jacobkap/crimeutils/issues |
RoxygenNote | 7.1.1 |
Language | en-US |
NeedsCompilation | no |
Packaged | 2020-09-07 18:27:41 UTC; user |
Repository | CRAN |
Date/Publication | 2020-09-15 09:40:11 UTC |
Include our badge in your README
[](http://www.rdocumentation.org/packages/crimeutils)