View source: R/dd_interaction.R
ds_dd_interaction | R Documentation |
Compute Distance Decay Interaction
ds_dd_interaction(.data, .cols, .name, .comp = FALSE) dd_interaction(..., .data = dplyr::across(everything()))
.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 |
a tibble or numeric vector if .name missing
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.