exposure_isolation_matrix: Convert global exposure and isolation to tabular form

Description Usage Arguments Value Examples

View source: R/exposure_isolation_matrix.R

Description

Convert global exposure and isolation to tabular form

Usage

1
exposure_isolation_matrix(segregation_results)

Arguments

segregation_results

a SEGREG object containing the results of a call to measure_segregation().

Value

a data.frame with global exposure and isolation results in tabular form

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library("sf")
library("ggplot2")
library("segregr")

# load sample data from package segregr
marilia_sf <- st_read(system.file("extdata/marilia_2010.gpkg", package = "segregr"))

# calculate segregation metrics
segregation <- measure_segregation(marilia_sf)

# convert to tabular form
exposure_isolation_matrix(segregation)

mvpsaraiva/segregr documentation built on July 16, 2021, 3:07 p.m.