pair_dcor | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.