filter_state function

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

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

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)
  • Maintainer: Kyle Walker
  • License: MIT + file LICENSE
  • Last published: 2024-01-24