Determine whether coordinates lie in a given statistical area.
latlon2SA(lat, lon, to = c("STE", "SA2", "SA1", "SA3", "SA4"), yr = c("2016", "2011"), return = c("v", "sp"), NAME = TRUE, .shapefile = NULL)
Numeric vector representing coordinates in decimal degrees. Coordinates south of the equator have lat < 0.
lat < 0
The statistical area to convert to.
The year of the statistical area.
Whether to return an atomic vector (v) representing the shapefile for each point lat, lon or a spatial points object from package sp.
(v)
lat, lon
sp
(logical, default: TRUE) whether to use the name or number of the statistical area
TRUE
If specified, an arbitrary shapefile containing the statistical areas to locate.
The statistical area that contains each point.
# NOT RUN { latlon2SA(-35.3, 149.2, to = "STE", yr = "2016") # }
Run the code above in your browser using DataLab