- a character vector with the folder (directory)
where the shapefile is
shape
- a character vector with the name of the shapefile
(without the .shp extension)
center
- the row number of the center
Value
A vector with the distance to the center's centroid
}
description{
The function is based on pkg{rgdal} and pkg{rgeos}
packages and it can be used by providing a shape file or a R
spatial object (SpatialPolygonsDataFrame).
}
examples{
distcenter(GreHSize, center = 19)
foldername <- system.file('extdata', package = 'OasisR')
shapename <- 'GreHSize'distcenter(folder = foldername, shape = shapename, center = 19)
}
seealso{
Other spatial functions used for segregation indices
computation: code{area}, code{contig},
code{perimeter}, code{distance},
code{boundaries}, code{xgeo}
}