get_psrc_pums: Retrieve and assemble PUMS data

get_psrc_pumsR Documentation

Retrieve and assemble PUMS data

Description

The primary PUMS function

Usage

get_psrc_pums(span, dyear, level, vars, dir = NULL, labels = TRUE)

Arguments

span

Either 1 for acs1 or 5 for acs5

dyear

The data year

level

Either "p" or "h", for "persons" or "households" respectively

vars

PUMS variable/s as an UPPERCASE string element or list

dir

Directory for .gz file, if already downloaded. Default NULL uses the Census ftp.

labels

Default TRUE, recodes varible values to the corresponding label

Value

A srvyr object with appropriate sampling weight and replication weights

Author(s)

Michael Jensen

Examples

## Not run: 
get_psrc_pums(span=1, dyear=2019, level="p", vars=c("AGEP","SEX"))
## End(Not run)


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