View source: R/netfacs-helpers.R
probability_of_combination | R Documentation |
Calculate probabilities of single elements and combinations occurring
probability_of_combination(elements, maxlen, sep = "_")
elements |
A vector with all elements observed together at an event. Or
a list of vectors or a binary matrix with elements as |
maxlen |
maximum size of combinations to be considered |
sep |
String. Separator used for showing combinations of elements |
Function returns a dataframe with observed probabilities for each combination in the dataset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.