| alt_aggregate_counts | Alternate Aggregate UCLA data for website groupings |
| assign_web_group | Assigns UCLA website groupings |
| calc_aggregate_counts | Aggregate UCLA and MP data to get a more recent accurate... |
| clean_fac_col_txt | Cleans character data that has been scraped from websites |
| clean_facility_name | A facility name cleaning function. Uses GitHub facility name... |
| coalesce_join | Coalescing join |
| coalesce_vector_warn | A re-coding of the coalesce_vector function to include... |
| coalesce_with_warnings | A re-coding of the coalesce function to include warnings when... |
| diff_roll_sum | A function to calculate a rolling sum of first differences |
| ExtractTable | Function to extract all tables from an image |
| get_genpop_covid | Get general population COVID data from NYT and Census 2019 |
| get_genstate_covid | Get general population state COVID data from CDC and Census... |
| get_genstate_vax | Get general population state COVID vaccine data from CDC and... |
| get_metric_description | Gets the description for a given COVID-19 metric |
| get_src_by_attr | Gets a web element based on a specific attribute that matches... |
| group_by_coalesce | A all in one group by and coalesce function |
| is_fac_name | Returns TRUE if a facility name exists in the facility... |
| is_federal | Simple function that returns TRUE/FALSE if "federal" is... |
| is_hifld_id | Returns TRUE if the given ID is a valid HIFLD ID |
| is_valid_state | Returns TRUE if the given state is a valid state spelling |
| last_not_na | Replaces NA in a vector with the previous most non NA value |
| list_remote_data | List remote data locations for Behind Bars Data |
| max_na_rm | A re-coding of the max function which returns NA if all... |
| merge_facility_info | Merges informative facility information such as capacity,... |
| parse_response | Parse API response from extractable |
| plot_fac_trend | Plot a single facility metric |
| plot_recent_fac_increases | Plot facilities with recent COVID-19 metric increases |
| process_file | Post image for extraction from API endpoint |
| pull_last_update | Read meta-data on the last dates scraper data was update by... |
| read_aggregate_pop_data | Read in statewide population data |
| read_cpp_data | Read the latest COVID Prison Project State Data |
| read_fac_crosswalk | Read in UCLA Prison and Jail Facility Data Crosswalk |
| read_fac_info | Read in UCLA Prison and Jail Facility Data |
| read_fac_spellings | Read in UCLA Prison and Jail Facility Data |
| read_hifld_data | Read in HIFLD Facility level Data |
| read_mpap_data | Read the latest Marshall Project State Data |
| read_mpap_pop_data | Get Feb 20, 2020 population data for state prisons from the... |
| read_scrape_data | Read data extracted by webscraper |
| read_staff_popfeb20 | Get Feb 20, 2020 population data for applicable rows in the... |
| read_vera_pop | Read in Vera Prison population estimates |
| reorder_cols | Re-orders columns to respect structure of daily scraped data. |
| retrieve_result | Retrieve result from API endpoint |
| sum_na_rm | A re-coding of the sum function which returns NA if all... |
| theme_behindbars | Theme and colors for behind bars plots |
| translate_state | Converts state abbreviations to state names |
| vector_sum_na_rm | A re-coding of the sum function which returns NA if all... |
| wayback_archives | Given a URL returns the url, timestamp, and statuscodes for... |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.