ds_rel_clust: Compute Relative Clustering

View source: R/rel_clust.R

ds_rel_clustR Documentation

Compute Relative Clustering

Description

Compute Relative Clustering

Usage

ds_rel_clust(.data, .cols, .name)

rel_clust(..., .data = dplyr::across(everything()))

Arguments

.data

tibble with sf geometry

.cols

tidy-select Columns to compute the measure with. Must be at least 2 columns. If more than 2, treats first column as first group and sum of other columns as second.

.name

name for column with relative clustering. Leave missing to return a vector.

...

arguments to forward to ds_rel_clust from rel_clust

Value

a tibble or numeric vector if .name missing

Examples

data("de_county")
ds_rel_clust(de_county, c(pop_black, starts_with('pop_')))
ds_rel_clust(de_county, c(pop_black, starts_with('pop_')), 'rel_clust')

divseg documentation built on Dec. 28, 2022, 1:53 a.m.