Skip to contents

Define how variables produced via urbnindicators::compile_acs_data() are calculated.

Usage

generate_codebook(.data)

Arguments

.data

The dataset returned from urbnindicators::compile_acs_data().

Value

A tibble containing the names and definitions of variables returned from urbnindicators::compile_acs_data().

Details

Generates a tibble of variable names and definitions that describe how each variable was created.

Examples

if (FALSE) { # \dontrun{
df = compile_acs_data(
  variables = list_acs_variables(year = 2022),
  years = c(2022),
  geography = "county",
  states = "NJ",
  counties = NULL,
  spatial = FALSE)
codebook = generate_codebook(.data = df)
} # }