pairwise_co_occur: Pairwise Frequency of Co-occurrence

View source: R/pairwise_co_occur.R

pairwise_co_occurR Documentation

Pairwise Frequency of Co-occurrence

Description

Calculates the pairwise frequency of co-occurrence.

Usage

pairwise_co_occur(data, cols, case_weights)

Arguments

data

A data frame.

cols

Columns to analyze.

case_weights

An optional column of case weights.

Details

  • Metric: Similarity

  • Symmetrical: Yes

  • Upper Limit: Inf

  • Lower Limit: 0

B
1 0
A 1 a b
0 c d

Co-occurrence = a

Value

A matrix.

Examples

res <- pairwise_co_occur(
    data = FoodSample,
    cols = Bisque:Turkey
)

print(res)

tidy(res)


ttrodrigz/onezero documentation built on May 9, 2023, 2:59 p.m.