ds_dissim {divseg} | R Documentation |
Compute Dissimilarity Index
Description
Compute Dissimilarity Index
Usage
ds_dissim(.data, .cols, .name, .comp = FALSE)
dissim(..., .data = dplyr::across(everything()))
Arguments
.data |
|
.cols |
|
.name |
name for column with dissimilarity index. Leave missing to return a vector. |
.comp |
Default is FALSE. FALSE returns the sum, TRUE returns the components. |
... |
arguments to forward to ds_dissim from dissim |
Value
a tibble or numeric vector if .name missing
Examples
data("de_county")
ds_dissim(de_county, c(pop_white, starts_with('pop_')))
ds_dissim(de_county, c(pop_white, starts_with('pop_')), .comp = TRUE)
ds_dissim(de_county, starts_with('pop_'), 'dissim')
[Package divseg version 0.0.5 Index]