ds_reyni: Compute Reyni Entropy

View source: R/reyni.R

ds_reyniR Documentation

Compute Reyni Entropy

Description

Compute Reyni Entropy

Usage

ds_reyni(.data, .cols, .name, q = 0)

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

Arguments

.data

tibble

.cols

tidy-select Columns to compute the measure with.

.name

name for column with Reyni entropy. Leave missing to return a vector.

q

exponent parameter. Default 0. Can not be 1.

...

arguments to forward to ds_reyni from reyni

Value

a tibble or numeric vector if .name missing

Examples

data('de_county')
ds_reyni(de_county, starts_with('pop_'))
ds_reyni(de_county, starts_with('pop_'), 'reyni')

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