Description Usage Arguments Examples
county_dist
measures the geographic distance between two counties. The location of each
county is assumed to be its center of population. Function is vectorized and accounts for
counties with NA matches to geographic coordinate data.
1 | county_dist(fips_one, fips_two, miles = TRUE)
|
fips_one |
FIPS code of first county. Order does not matter. |
fips_two |
FIPS code of second county. Order does not matter. |
miles |
Binary flag for whether to return distance in miles (TRUE) or kilometers (FALSE). |
1 2 | county_dist(fips_one = "01003", fips_two = "01005", miles = TRUE)
county_dist(fips_one = temp_df$fips_code, fips_two = temp_df$neighbor_fips_code)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.