latlon2SA {ASGS.foyer} | R Documentation |
Determine whether coordinates lie in a given statistical area.
Description
Determine whether coordinates lie in a given statistical area.
Usage
latlon2SA(
lat,
lon,
to = c("STE", "SA2", "SA1", "SA3", "SA4"),
yr = c("2016", "2011"),
return = c("v", "sp"),
NAME = TRUE,
.shapefile = NULL
)
Arguments
lat , lon |
Numeric vector representing coordinates in decimal degrees. Coordinates south of the equator have |
to |
The statistical area to convert to. |
yr |
The year of the statistical area. |
return |
Whether to return an atomic vector |
NAME |
(logical, default: |
.shapefile |
If specified, an arbitrary shapefile containing the statistical areas to locate. |
Value
The statistical area that contains each point.
Examples
latlon2SA(-35.3, 149.2, to = "STE", yr = "2016")
[Package ASGS.foyer version 0.3.3 Index]