pairwise_by | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.