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