Learn R Programming

bullseye (version 0.1.2)

pair_dcor: Distance correlation

Description

Calculates distance correlation for every numeric variable pair in a dataset.

Usage

pair_dcor(d, handle.na = TRUE, ...)

Value

A tibble of class pairwise with distance correlation for every numeric variable pair, or NULL if there are not at least two numeric variables

Arguments

d

A dataframe

handle.na

If TRUE uses pairwise complete observations to calculate distance correlation, otherwise NAs not handled.

...

other arguments

Details

The distance correlation is calculated using dcor2d from energy package

Examples

Run this code
pair_dcor(iris)

Run the code above in your browser using DataLab