This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 | |
height: 1100 | |
border: no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This loop generates a dataframe and plot for each offence | |
for(offence in cc_code_offences.l){ | |
offence_slug <- slugify::slugify(offence, alphanum_replace = "", space_replace = "_", tolower = TRUE) | |
offence_slug <- gsub("__", "_", offence_slug, fixed=TRUE) | |
df_name <- paste(offence_slug, ".df", sep = "") | |
plot_name <- paste("p_", offence_slug, sep = "") | |
tmp.df <- filter_cc_offence(df=ywg_monthly_crime_data_2008_2019, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node -v > .nvmrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List of packages for session | |
package_list = c('devtools', | |
'here', | |
'tidyverse', | |
'janitor', | |
'magrittr', | |
'parsedate') | |
# Install CRAN packages (if not already installed) |
OlderNewer