View source: R/pairwise_co_occur.R
| pairwise_co_occur | R Documentation | 
Calculates the pairwise frequency of co-occurrence.
pairwise_co_occur(data, cols, case_weights)
data | 
 A data frame.  | 
cols | 
 Columns to analyze.  | 
case_weights | 
 An optional column of case weights.  | 
Metric: Similarity
Symmetrical: Yes
Upper Limit: Inf
Lower Limit: 0
| B | |||
| 1 | 0 | ||
| A | 1 | a | b | 
| 0 | c | d | |
Co-occurrence = a
A matrix.
res <- pairwise_co_occur(
    data = FoodSample,
    cols = Bisque:Turkey
)
print(res)
tidy(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.