pairwise_by {bullseye} | R Documentation |
Constructs a pairwise result for each level of a by variable.
pairwise_by(d, by, pair_fun, ungrouped = TRUE)
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. |
tibble of class "pairwise"
pairwise_by(iris, by="Species", pair_cor)