This package implements a tidy approach to calculating various measures of segregation used in demography and spatial statistics.
For now, tidyseg
is not available on CRAN and therefore should be installed from GitHub:
remotes::install_github("slu-openGIS/tidyseg")
As this time, the package includes a function for estimating index of dissimilarity values:
> df <- stlRace
>
> ts_dissim(df, popA = black, popB = white, return = "index")
[1] 0.6148765