perimeter: A function to compute the spatial units' perimeters

Description Usage Arguments Value See Also Examples

View source: R/GeoFunctions.R

Description

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

Usage

1
perimeter(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 perimeter vector

See Also

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

Examples

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

OasisR documentation built on May 19, 2017, 9:24 a.m.

Search within the OasisR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.