Learn R Programming

tigris (version 2.1)

filter_place: Filter a places Spatial object for only those places matching the contents of the place vector.

Description

Filter a places Spatial object for only those places matching the contents of the place vector.

Usage

filter_place(places, place)

Arguments

places

object returned from a call to places

place

a vector of full place names. The function performs the comparison in a case-insensitive manner.

Examples

Run this code
if (FALSE) {
places("Maine") %>% filter_place("berwick")
}

Run the code above in your browser using DataLab