process_df_tp: Process ACS data - Takoma Park specific Groups...

Description Usage Arguments

View source: R/process_acs_tp.R

Description

Process ACS data - Takoma Park specific Groups lightly-processed tidycensus/ACS dataframe, and identifies statistical-significance of values comparing Takoma Park to Montgomery County and Maryland.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
process_df_tp(
  df,
  group_cols,
  overall_cols,
  name_col,
  bind_overall = NULL,
  signif_cols = list(Overall = "signif_overall", MC = "signif_mont", MD =
    "signif_maryland"),
  root_df = NULL
)

Arguments

df

Lightly-processed ACS dataframe with estimate and MOE column.

group_cols

Columns to group ACS dataframe by.

overall_cols

The set of columns to calculate overall results for. E.g., if you want to see how age groups differ from overall rates of access, you would enter the computer access column as the group col.

name_col

Base-name of column to store values in for grouped dataframe.

bind_overall

Whether to add overall results as a row to the processed dataframe. Should enter name of column with groups comparing against (e.g., if comparing ages against overall, should enter age).

signif_cols

Named list with value representing name of the column with significance values, and names representing how significance should be described in the new column (e.g., "Montgomery County" = "signif_mont" would be for a signif_mont column describing the significance of differences with Montgomery County, and Montgomery County is how it would be represented in the new column).

root_df

If the df has already been processed more, the base-dataframe from which the df was processed.


dpowerstp/tpfuncts documentation built on Dec. 20, 2021, 1:12 a.m.