Man pages for greaterlouisvilleproject/glptools
Tools for analysis of Greater Louisville Project data

add_populationAdd a population column to a GLP-format dataframe
age_adj_rateCalculate an age-adjusted rate
assign_joinJoin two data frames when one might not exist
bind_dfJoins data frames by common GLP ID variables
build_census_var_dfCreate a data frame to use for the Census API
census_to_councilConvert census block group data to metro council district...
census_to_council_directConvert census tract or block group data to metro council...
clean_acs_microProcess ACS microdata from IPUMS.
clean_cps_microProcess CPS microdata from IPUMS.
clean_wonderClean CDC Wonder data
COLAAdjust data for cost of living and inflation
COLA_dfInflation and cost of living data. The data frame is used by...
cols_inReturns any columns in data frame 'df' that are in the...
cols_not_inReturns any columns in data frame 'df' that are NOT in the...
complete_checkCheck if each row of a data frame is unique
complete_vector_argExpand a data frame to make missing combinations expicit
df_typeReturn the geography of a GLP data frame.
FIPS_dfA list of GLP peer counties.
FIPS_PUMAA crosswalk of FIPS codes to the PUMAs they contain.
FIPS_zipA crosswalk of FIPS codes to the zip codes they contain.
get_censusGet data from the Census API
get_sysdataAdd or replace a file in sysdata.rda Any files in the current...
glp_load_packagesLoad GLP-related packages
make_listMakes a named list of objects
make_mapGLP Map
make_map_00Deprecate this
map_block_groupA map of block groups in Louisville
map_countyA map of counties in the Louisville MSA
map_marketA map of market areas in Louisville
map_tract_2000A map of 2000 tracts in Louisville
map_zipA map of zip codes in Louisville
ma_tractA crosswalk from tracts to market areas.
MSA_dfA list of GLP peer MSAs.
MSA_FIPSA crosswalk of MSA codes to the FIPS codes of their core...
MSA_PUMAA crosswalk of MSA codes to the PUMAs they contain.
MSA_zipA crosswalk of MSA codes to the zip codes they contain.
nh_tractA crosswalk from tracts to neighborhoods.
norm_zNormalize a vector
not_inNot in, the counterpart to x %not_in% table Not in, the...
organizeOrganizes common GLP data by columns and rows and replaces...
pShorthand for 'paste0(a, b)'
per_capita_adjCreate population-adjusted variables
pivot_vartype_longerConvert census tract data to metro council district data
pivot_vartype_widerConvert census tract data to metro council district data
population_dfPopulation data with unmerged St. Louis Counties and a...
population_df_mergedPopulation
process_censusAlgorithm to create GLP-style data frame from census...
process_mapCreate tract, nh, and muw map files from a map data frame
process_map_ogCreate tract, nh, and muw map files from a map data frame
pull_LouSubset a data frame containing MSA or county data to peer...
pull_peersSubset a data frame containing MSA or county data to peer...
rankingGLP Ranking
readersGLP Readers
reshape_sexGathers data from wide format into long format based on sex.
rollmeanrCalculate the rolling mean of a vector
stl_adj_wonderMerge St. Louis
stl_mergeCombines rows of data from the two St. Louis counties into...
sum_by_var_typeSummarize vars
sum_FIPS_to_MSAGroup data by MSA and summarise
survey_by_demogSurvey microdata by race and sex
svy_bootstrapSurvey microdata by a particular demographic grouping
svy_repwtsSurvey using replicate weights
tlThe workhorse behind other trendline functions
tl_add_line_dataAdd factor columns for ggplot to reference when assigning...
tl_add_line_data_maxminAdd factor columns for ggplot to reference when assigning...
tl_break_settingsCalculate x-axis break settings
tl_filterFilter data to sex, race, and peer set.
tl_limitsAdd x and y axis limits and plot labels
tl_linesAdd lines
tl_lines_maxminBRFSS
tl_plotInitial plot
tl_reshape_dataReshape data to long format
tl_reshape_data_maxminReshape data to long format for trendlines displaying the...
tl_rolling_meanCalculate the rolling mean of a data frame
tl_styleAdd style elements
tl_year_breaksCalculate the rolling mean of a data frame
total_demographicsAggregates demographic data
tract00_to10Transform data from 2000 census tracts to 2010 census tracts
tract10_to_00Transform data from 2010 census tracts to 2000 census tracts
trendlineGLP Trendline
unique_checkCheck if each row of a data frame is unique
update_sysdataAdd or replace a file in sysdata.rda Any files in the current...
watterson_tractIdentifies which tracts are mostly inside the Watterson.
wonder_time_ageRead in CDC Wonder Data where each file is an...
years_in_dfReturn the years in a data frame
greaterlouisvilleproject/glptools documentation built on Feb. 9, 2025, 11:21 a.m.