Description Usage Arguments Value See Also Examples
Return the names of the set of IBRA regions or subregions within which a set of points falls.
| 1 | ibra_region(pts, tabulate = TRUE, min_n = 1, type = "subregion")
 | 
| pts | A SpatialPolygons* object. | 
| tabulate | Logical. If  | 
| min_n | The minimum number of points a region must contain in order for 
the region name to be returned when  | 
| type | Character. Either  | 
If tabulate is FALSE, a vector of IBRA 7 subregion (or 
region, see type) names corresponding to the IBRA 7 regions (or 
subregions) that at least min_n pts fall within. If 
tabulate is TRUE, a named vector showing the number of points
in each occupied IBRA 7 subregions (or regions). Points that do not overlie
an IBRA 7 subregion will be ignored with a warning.
| 1 2 3 4 5 6 7 | library(sp)
xy <- SpatialPoints(data.frame(x=runif(1000, 140, 145), y=runif(1000, -38, -35)))
proj4string(xy) <- '+init=epsg:4283'
reg <- ibra_region(xy, type='region')
reg
subreg <- ibra_region(xy, type='subregion')
subreg
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.