ds_atkinson {divseg} | R Documentation |
Compute Atkinson b Index
Description
Compute Atkinson b Index
Usage
ds_atkinson(.data, .cols, .name, b = 0.5)
atkinson(..., .data = dplyr::across(everything()))
Arguments
.data |
|
.cols |
|
.name |
name for column with Atkinson b index. Leave missing to return a vector. |
b |
Default 0.5. Exponent parameter b, where 0 <= b <= 1. |
... |
arguments to forward to ds_atkinson from atkinson |
Value
a tibble or numeric vector if .name missing
Examples
data('de_county')
ds_atkinson(de_county, c(pop_white, starts_with('pop_')))
ds_atkinson(de_county, starts_with('pop_'), 'atkinson')
[Package divseg version 0.0.5 Index]