Learn R Programming

OasisR (version 2.0.1)

RCO: A function to compute Relative Concentration index (RCO)

Description

The relative concentration index, RCO, measures the share of space occupied by a group compared to another group. The function can be used in two ways: to provide an area vector or a external geographic information source (spatial object or shape file).

Usage

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

Arguments

x

- an object of class matrix (or which 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 1 (at least 2 population groups are required). You should not include a column with total population in each unit, because this will be interpreted as a group.

a

- a numeric vector containing the areas of spatial units

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 matrix containing relative concentration index values

References

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

See Also

one-group concentration indices: Delta, ACO

Examples

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

RCO(x, a = ar) 

RCO(x, spatobj = GreHSize)

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

# }

Run the code above in your browser using DataLab