This subsets a pl table to a desired summary level. Typical choices include:

  • '750': block

  • '150': block group

  • '630': voting district

  • '050': county

pl_subset(pl, sumlev = "750")

Arguments

pl

A list of PL tables, as read in by pl_read()

sumlev

the summary level to filter to. A 3 character SUMLEV code. Default is '750' for blocks.

Value

tibble

Details

All summary levels are listed in pl_geog_levels.

Examples

# \donttest{
pl_ex_path <- system.file('extdata/ri2018_2020Style.pl', package = 'PL94171')
pl <- pl_read(pl_ex_path)
pl <- pl_subset(pl)
# }