pl_subset: Subset to a Summary Level

View source: R/pl_subset.R

pl_subsetR Documentation

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")

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.

Value

tibble

Examples


pl_ex_path <- system.file('extdata/ri2018_2020Style.pl', package = 'PL94171')
pl <- pl_read(pl_ex_path)
pl <- pl_subset(pl)


PL94171 documentation built on Sept. 12, 2022, 1:06 a.m.