latlon2SA: Determine whether coordinates lie in a given statistical...

Description Usage Arguments Value Examples

View source: R/latlon2SA.R

Description

Determine whether coordinates lie in a given statistical area.

Usage

1
2
3
4
5
6
7
8
9
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 lat < 0.

to

The statistical area to convert to.

yr

The year of the statistical area.

return

Whether to return an atomic vector (v) representing the shapefile for each point lat, lon or a spatial points object from package sp.

NAME

(logical, default: TRUE) whether to use the name or number of the statistical area

.shapefile

If specified, an arbitrary shapefile containing the statistical areas to locate.

Value

The statistical area that contains each point.

Examples

1
latlon2SA(-35.3, 149.2, to = "STE", yr = "2016")

ASGS.foyer documentation built on March 21, 2021, 5:05 p.m.