grep_place: Find places matching a term in a 'places' object

View source: R/places.R

grep_placeR Documentation

Find places matching a term in a places object

Description

This is just shorthand for grep(term, list_places(places), value=TRUE, ignore.case=TRUE)

Usage

grep_place(places, term)

Arguments

places

object returned from a call to places

term

equivalent to the pattern argument of grep

Examples

## Not run: 
places("Maine") %>% grep_place("south")

## End(Not run)

tigris documentation built on Sept. 22, 2023, 5:13 p.m.