powered by
Constructs a pairwise result for each level of a by variable.
pairwise_by(d, by, pair_fun, ungrouped = TRUE)
tibble of class "pairwise"
a dataframe
a character string for the name of the conditioning variable.
A function returning a pairwise from a dataset.
pairwise
If TRUE calculates the ungrouped score in addition to grouped scores.
pairwise_by(iris, by="Species", pair_cor)
Run the code above in your browser using DataLab