Learn R Programming

divseg (version 0.1.0)

ds_reyni: Compute Reyni Entropy

Description

Compute Reyni Entropy

Usage

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

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

Value

a tibble or numeric vector if .name missing

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

Examples

Run this code
data('de_county')
ds_reyni(de_county, starts_with('pop_'))
ds_reyni(de_county, starts_with('pop_'), 'reyni')

Run the code above in your browser using DataLab