Get the URL for PL files for a particular state and year

pl_url(abbr, year = 2010)

Arguments

abbr

The state to download the PL files for

year

The year of PL file to download. Supported years: 2000, 2010, 2020 (after release). 2000 files are in a different format. Earlier years available on tape or CD-ROM only.

Value

a character vector containing the URL to a ZIP containing the PL files.

Examples

pl_url("RI", 2010)
#> [1] "https://www2.census.gov/census_2010/01-Redistricting_File--PL_94-171/Rhode_Island/ri2010.pl.zip"