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

filter_state

Filter a states Spatial object for only those states matching the contents of the state vector.


Description

Filter a states Spatial object for only those states matching the contents of the state vector.

Usage

filter_state(states, state)

Arguments

states

object returned from a call to states

state

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

Examples

## Not run: 
states() %>% filter_state("south")

## 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.