Learn R Programming

tigris (version 0.5)

grep_place: Find places matching a term in a

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

Run this code
## Not run: ------------------------------------
# places("Maine") %>% grep_place("south")
## ---------------------------------------------

Run the code above in your browser using DataLab