
The function is based on rgdal package and can be used with a shape file or an R spatial object (SpatialPolygonsDataFrame).
area(spatobj = NULL, folder = NULL, shape = NULL)
- a spatial object (SpatialPolygonsDataFrame) containing geographic information
- a character vector with the folder (directory) name indicating where the shapefile with the geographic information is located.
- a character vector with the name of the shapefile (without the .shp extension) which contains the geographic information
A area vector
Other spatial functions used for segregation indices
computation: contig
, perimeter
,
distance
, distcenter
,
boundaries
# NOT RUN {
area(segdata)
foldername <- system.file('extdata', package = 'OasisR')
shapename <- 'segdata'
area(folder = foldername, shape = shapename)
# }
Run the code above in your browser using DataLab