format_estimates: Format Estimates

View source: R/format-estimates.R

format_estimatesR Documentation

Format Estimates

Description

Format estimates of a county summary table with the option to include shares and share margins of error.

Usage

format_estimates(table, type = "total", moe = TRUE)

Arguments

table

A data frame/tibble from 'get_acs_recs()' for a single table and time period.

type

A character, select either 'total' or 'share'.

moe

A logical value, TRUE or FALSE to include or exclude margins of error.

Value

A data frame of ACS estimates by PSRC counties and region of either total estimates or proportions, with or without margins of error.

Author(s)

Christy Lam

Examples

df <-get_acs_recs(geography = 'county',
                               table.names = c('B03002'),
                               years = c(2019),
                               acs.type = 'acs1')

format_estimates(df)
format_estimates(df, type = 'share', moe = FALSE)

psrc/psrccensus documentation built on June 1, 2025, 1:06 p.m.