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