count_all_edge_crossings {ggEDA} | R Documentation |
Count Edge Crossings for All Numeric Column Pairs
Description
Computes the total number of edge crossings between all pairs of numeric columns in a given dataset.
Usage
count_all_edge_crossings(
data,
approximate = FALSE,
subsample_prop = 0.4,
recalibrate = FALSE
)
Arguments
data |
A |
approximate |
estimate crossings based on a subsample of the data. See |
subsample_prop |
only used when approximate = TRUE. If 0-1, controls the proportion of data to be sampled to speed up computation. If a whole number other than 0 or 1, represents the number of rows subsampled |
recalibrate |
when approximating crossings via subsetting, should number of crossings calculated for the subsample be upscaled to match the full count. (turned off by default since it amplifies sampling error). |
Details
The function:
Filters the input data to retain only numeric columns.
Computes all possible pairs of numeric columns.
Uses
count_edge_crossings()
to calculate crossings for each pair.Returns the results in a summarized data frame.
Value
A data.frame
with three columns:
- col1
The name of the first column in the pair.
- col2
The name of the second column in the pair.
- crossings
Total number of edge crossings for that pair.