pairwise_by: Constructs a pairwise result for each level of a by variable.

View source: R/pair_methods.R

pairwise_byR 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)

Arguments

d

a dataframe

by

a character string for the name of the conditioning variable.

pair_fun

A function returning a pairwise from a dataset.

ungrouped

If TRUE calculates the ungrouped score in addition to grouped scores.

Value

tibble of class "pairwise"

Examples

pairwise_by(iris, by="Species", pair_cor)



bullseye documentation built on Sept. 11, 2024, 9:24 p.m.