boundaries: A function to compute the matrix of common boundaries

Description Usage Arguments Value See Also Examples

View source: R/GeoFunctions.R

Description

The function is based on rgdal and rgeos packages and it can be used with a shape file or an R spatial object (SpatialPolygonsDataFrame).

Usage

1
boundaries(spatobj = NULL, folder = NULL, shape = NULL)

Arguments

spatobj

- a spatial object (SpatialPolygonsDataFrame) containing geographic information

folder

- a character vector with the folder (directory) name indicating where the shapefile with the geographic information is located.

shape

- a character vector with the name of the shapefile (without the .shp extension) which contains the geographic information

Value

A common boundaries matrix

See Also

Other spatial functions used for segregation indices computation: area, contig, perimeter, distance, distcenter

Examples

1
2
3
4
 boundaries(segdata) 
foldername <- system.file('extdata', package = 'OasisR')
shapename <- 'segdata'
boundaries(folder = foldername, shape = shapename)

OasisR documentation built on July 2, 2020, 3:14 a.m.

Related to boundaries in OasisR...