county_to_state_border: Distance between county population center and nearest state...

Description Usage Arguments Examples

View source: R/distances.R

Description

county_to_state_border outputs the minimum distance between a county population center and the nearest state border. Alternatively, returns the identifier for the nearest state border.

Usage

1
2
county_to_state_border(fips_code, return_state_border_id = FALSE,
  miles = TRUE)

Arguments

fips_code

FIPS code of county.

return_state_border_id

Binary flag for whether to return the state border identifier for the nearest state border instead of the distance. Defaults to FALSE.

miles

Binary flag for whether to return distance in miles (TRUE) or kilometers (FALSE).

Examples

1
2
county_to_state_border(fips_one = "01003", return_state_border_id = FALSE, miles = TRUE)
county_to_state_border(fips_one = temp_df$fips_code, return_state_border_id = TRUE)

davidsovich/usgeogr documentation built on Nov. 4, 2019, 9:45 a.m.