Learn R Programming

bullseye (version 0.1.2)

pairwise_by: 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)

Value

tibble of class "pairwise"

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.

Examples

Run this code
pairwise_by(iris, by="Species", pair_cor)


Run the code above in your browser using DataLab