Man pages for uclalawcovid19behindbars/behindbarstools
Tools for the UCLA Behind Bars Data Team

alt_aggregate_countsAlternate Aggregate UCLA data for website groupings
assign_web_groupAssigns UCLA website groupings
calc_aggregate_countsAggregate UCLA and MP data to get a more recent accurate...
clean_fac_col_txtCleans character data that has been scraped from websites
clean_facility_nameA facility name cleaning function. Uses GitHub facility name...
coalesce_joinCoalescing join
coalesce_vector_warnA re-coding of the coalesce_vector function to include...
coalesce_with_warningsA re-coding of the coalesce function to include warnings when...
diff_roll_sumA function to calculate a rolling sum of first differences
ExtractTableFunction to extract all tables from an image
get_genpop_covidGet general population COVID data from NYT and Census 2019
get_genstate_covidGet general population state COVID data from CDC and Census...
get_genstate_vaxGet general population state COVID vaccine data from CDC and...
get_metric_descriptionGets the description for a given COVID-19 metric
get_src_by_attrGets a web element based on a specific attribute that matches...
group_by_coalesceA all in one group by and coalesce function
is_fac_nameReturns TRUE if a facility name exists in the facility...
is_federalSimple function that returns TRUE/FALSE if "federal" is...
is_hifld_idReturns TRUE if the given ID is a valid HIFLD ID
is_valid_stateReturns TRUE if the given state is a valid state spelling
last_not_naReplaces NA in a vector with the previous most non NA value
list_remote_dataList remote data locations for Behind Bars Data
max_na_rmA re-coding of the max function which returns NA if all...
merge_facility_infoMerges informative facility information such as capacity,...
parse_responseParse API response from extractable
plot_fac_trendPlot a single facility metric
plot_recent_fac_increasesPlot facilities with recent COVID-19 metric increases
process_filePost image for extraction from API endpoint
pull_last_updateRead meta-data on the last dates scraper data was update by...
read_aggregate_pop_dataRead in statewide population data
read_cpp_dataRead the latest COVID Prison Project State Data
read_fac_crosswalkRead in UCLA Prison and Jail Facility Data Crosswalk
read_fac_infoRead in UCLA Prison and Jail Facility Data
read_fac_spellingsRead in UCLA Prison and Jail Facility Data
read_hifld_dataRead in HIFLD Facility level Data
read_mpap_dataRead the latest Marshall Project State Data
read_mpap_pop_dataGet Feb 20, 2020 population data for state prisons from the...
read_scrape_dataRead data extracted by webscraper
read_staff_popfeb20Get Feb 20, 2020 population data for applicable rows in the...
read_vera_popRead in Vera Prison population estimates
reorder_colsRe-orders columns to respect structure of daily scraped data.
retrieve_resultRetrieve result from API endpoint
sum_na_rmA re-coding of the sum function which returns NA if all...
theme_behindbarsTheme and colors for behind bars plots
translate_stateConverts state abbreviations to state names
vector_sum_na_rmA re-coding of the sum function which returns NA if all...
wayback_archivesGiven a URL returns the url, timestamp, and statuscodes for...
uclalawcovid19behindbars/behindbarstools documentation built on April 22, 2022, 4:08 a.m.