pair_dcor {bullseye} | R Documentation |
Calculates distance correlation for every numeric variable pair in a dataset.
pair_dcor(d, handle.na = TRUE, ...)
d |
A dataframe |
handle.na |
If TRUE uses pairwise complete observations to calculate distance correlation, otherwise NAs not handled. |
... |
other arguments |
The distance correlation is calculated using dcor2d
from energy
package
A tibble of class pairwise
with distance correlation for every numeric variable pair,
or NULL if there are not at least two numeric variables
pair_dcor(iris)