Returns the pairwise exposure indices between groups
exposure(data, group, unit, weight = NULL)
Returns a data.table with columns "of", "to", and "exposure". Read results as "exposure of group x to group y".
A data frame.
A categorical variable
contained in data
. Defines the first dimension
over which segregation is computed.
A vector of variables
contained in data
. Defines the second dimension
over which segregation is computed.
Numeric. (Default NULL
)