add_nobs_to_pairwise {bullseye}R Documentation

Adds number of observations column to pairwise tibble

Description

Adds number of observations column to pairwise tibble

Usage

add_nobs_to_pairwise(scores, d, by = NULL)

Arguments

scores

An object of class pairwise, calculated from dataset d.

d

a dataframe

by

a character string for the name of the conditioning variable from d used to construct scores. Set to NULL by default.

Value

A pairwise tibble with a column n

Examples

irisc <- pairwise_scores(iris[40:150,], by= "Species")
irisc <- add_nobs_to_pairwise(irisc, iris[40:150,], by= "Species")
irisc
plot_pairwise(irisc) # setosa gets a small slice in proportion to n

[Package bullseye version 1.0.0 Index]