Learn R Programming

PL94171 (version 1.2.1)

pl_subset: Subset to a Summary Level

Description

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

  • '750': block

  • '150': block group

  • '630': voting district

  • '050': county

Usage

pl_subset(pl, sumlev = "750")

Value

A data frame

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.

Details

All summary levels are listed in pl_geog_levels.

Examples

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

Run the code above in your browser using DataLab