Downloads block geography and merges with the cleaned PL 94-171 file.
pl_tidy_shp(abbr, path, year = 2020, type = c("blocks", "vtds"), ...)
The state to make the shapefile for
The path to the PL files, as in pl_read()
The year to download the block geography for. Should match the year of the PL files.
If "blocks"
, make a Census block shapefile; if "vtds"
make a
VTD shapefile.
passed on to dplyr::filter()
; use to subset to a certain county,
for example.
an sf
object with demographic and shapefile information for the
state.
# \donttest{
pl_ex_path <- system.file("extdata/ri2018_2020Style.pl", package = "PL94171")
pl_tidy_shp("RI", pl_ex_path)
#> Error in curl::curl_download(url, path, quiet = quiet): HTTP response code said error [www2.census.gov]: The requested URL returned error: 403
# }