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)

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)



[Package bullseye version 0.1.0 Index]