Utilities Powering the Globe and Mail's Data Journalism Template
Runs the pre-processing step on a startr project.
Index values
Calculate mode
Cleans up column names by forcing them into tidyverse style
Combine CSVs in a directory
Combine Excel files in a directory
Converts a character vector to logicals
Get path within cached data directory.
Get path within disposable data outputs directory.
Get path within processed data directory.
Get path within raw data directory.
Construct an arbitrary path.
Get path within plots directory.
Get path within reports directory.
Get path within scrape directory.
Get path within src directory
Runs the post-processing step on a startr project.
Opposite of %in%
Initialize startr project
Opposite of is.na
Opposite of is.null
Combine all sheets in an Excel file
Removes non-UTF-8 characters
Renders out an RMarkdown notebook.
Reorder an x or y axis within facets
Runs the analysis step for a startr project.
Configures an existing startr project
Runs the notebook rendering step for a startr project.
Runs the processing step on a startr project.
Runs the visualization step for a startr project.
Create a continuous x-axis scale using percentages
Passed after reorder_within to reorder x-axis along facets
Create a continuous y-axis scale using percentages
Passed after reorder_within to reorder x-axis along facets
Simplifies strings for analysis
De-accents strings
Write out an Excel file with minimal configuration
Write out a ggplot2 graphic with minimal configuration
Write a shapefile to disk
Core functions necessary for using The Globe and Mail's R data journalism template, 'startr', along with utilities for day-to-day data journalism tasks, such as reading and writing files, producing graphics and cleaning up datasets.
Useful links