Learn R Programming

OasisR (version 1.0.0)

ACO: A function to compute Absolute Concentration index (ACO)

Description

Concentration refers to the physical space occupied by a group. The less of the area a group occupies, the more concentrated it is. The function can be used in two ways: by providing a vector with spatial units' area, or a geographic source (spatial object or shape file) wich will be used to compute the area vector within the function.

Usage

ACO(x, a = NULL, spatobj = NULL, folder = NULL, shape = NULL)

Arguments

x
- an object of class matrix (or that can be coerced to that class), where each column represents the distribution of a population group, within spatial units. The number of columns should be greater than one (at least two population groups are require
a
- a vector with areas of spatial units
spatobj
- a spatial object (SpatialPolygonsDataFrame)
folder
- 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)

Value

  • A vector with Absolute Concentration index

References

Massey D. S. and Denton N. A. (1988) The dimensions of residential segregation. Social Forces 67(2), pp. 281-315.

See Also

Delta Index: Delta Relative Concentration Index: RCO

Examples

Run this code
x <- slot(GreHSize, 'data')[ ,3:5]
ar <- area(GreHSize)
foldername <- system.file('extdata', package = 'OasisR')
shapename <- 'GreHSize'

ACO(x, a = ar)

ACO(x, spatobj = GreHSize)

ACO(x, folder = foldername, shape = shapename)

Run the code above in your browser using DataLab