Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

grep_state

Find states matching a term in a state object


Description

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

Usage

grep_state(states, term)

Arguments

states

object returned from a call to state

term

equivalent to the pattern argument of grep

Examples

## Not run: 
states() %>% grep_state("north")

## End(Not run)

tigris

Load Census TIGER/Line Shapefiles

v1.0
MIT + file LICENSE
Authors
Kyle Walker [aut, cre], Bob Rudis [ctb]
Initial release
2020-07-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.