pair_nmi {bullseye} | R Documentation |
Normalized mutual information
Description
Calculates normalized mutual information for every numeric or factor or mixed variable pair in a dataset.
Usage
pair_nmi(d, handle.na = TRUE, warnings = TRUE, ...)
Arguments
d |
A dataframe |
handle.na |
If TRUE uses pairwise complete observations to calculate normalized mutual information, otherwise NAs not handled. |
warnings |
If TRUE, generates a warning for datasets of one row, one column, or with constant variables. |
... |
other arguments |
Details
The normalized mutual information is calculated using maxNMI
from linkpotter package
Value
A tibble of class pairwise
Examples
if (requireNamespace("linkspotter", quietly = TRUE)) {
pair_nmi(iris)
}
[Package bullseye version 1.0.0 Index]