get_state_ind: Get State Indicator

Description Usage Arguments Value

View source: R/mapping.R

Description

Determines which rows of a SpatialPolygonsDataFrame corresponds to the states specified in the function call.

Usage

1
get_state_ind(shapes, state, geo)

Arguments

shapes

A SpatialPolygonsDataFrame

state

Character scalar giving the name of the geography to identify (e.g., alaska, hawaii, excluded, teritories)

geo

Character vector giving the geography of the shape file (e.g, state, cbsa)

Value

Boolean vector indicating which rows correspond to the states specified in the function call.


kbrevoort/cbsa documentation built on June 12, 2020, 8:44 a.m.