ds_rel_conc: Compute Relative Concentration

Description Usage Arguments Value Examples

View source: R/rel_conc.R

Description

Compute Relative Concentration

Usage

1
2
3
ds_rel_conc(.data, .cols, .name)

rel_conc(..., .data = dplyr::cur_data_all())

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 concentration. Leave missing to return a vector.

...

arguments to forward to ds_rel_conc from rel_conc

Value

a tibble or numeric vector if .name missing

Examples

1
2
3
data('de_county')
ds_rel_conc(de_county, c(pop_black, starts_with('pop_')))
ds_rel_conc(de_county, c(pop_black, starts_with('pop_')), 'rel_conc')

divseg documentation built on Aug. 9, 2021, 9:09 a.m.