Description Usage Arguments Value References Examples
Convert latitude and longitude coordinates to US states or US states and counties.
1 |
pointsDF |
A data frame in which the first two columns contain the longitude and latitude in degrees. |
to |
A character scalar identifying the region to be identified, either "state", the default, or "county". |
If to="state"
, a character vector of state names, all lower case,
the same length as the number of rows in pointsDF
.
If to="county"
, a character matrix of state and county names, all
lower case, with two columns and the same number of rows
as pointsDF
.
Based on a method posted by Josh O'Brien on 6 Jan 2012 on stackoverflow [link].
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.