pairwise_by {bullseye} | R Documentation |
Constructs a pairwise result for each level of a by variable.
Description
Constructs a pairwise result for each level of a by variable.
Usage
pairwise_by(
d,
by,
pair_fun,
ungrouped = TRUE,
warnings = TRUE,
add.nobs = FALSE
)
Arguments
d |
a dataframe |
by |
a character string for the name of the conditioning variable. |
pair_fun |
A function returning a |
ungrouped |
If TRUE calculates the ungrouped score in addition to grouped scores. |
warnings |
If TRUE, generates a warning for datasets of one row, one column, or with constant variables. |
add.nobs |
If TRUE, adds an extra column containing the number of observations used for each score. |
Value
tibble of class "pairwise"
Examples
pairwise_by(iris, by="Species", pair_cor)
[Package bullseye version 1.0.0 Index]