load_bper_data: Load data for 'impute_ethnorace' function

View source: R/load_bper_data.R

load_bper_dataR Documentation

Load data for impute_ethnorace function

Description

This function retrieves the demographic data for use in impute_ethnorace.

Usage

load_bper_data(
  input_data,
  year,
  census_key = NULL,
  ll = list(last_name = 1, first_name = 1, state = 1, county = 1, zip = 1, place = 1,
    tract = 1, district = 1, block = 1),
  ...
)

Arguments

input_data

The input data frame containing the individuals whose ethnorace the user wants to impute. The following input variables are supported: last_name, first_name, age, sex, party, multi_unit, state, county, zip, place, tract, district, block.

year

The year for which Census data will be loaded. The function will retrieve the closest available Census data for the year.

census_key

Personal Census API key. See https://api.census.gov/data/key_signup.html

Value

A list with data objects necessary for impute_ethnorace.


bwilden/bper documentation built on March 25, 2023, 3:39 p.m.