Calculate Association Rules | R Documentation |
Calculate Association Rules using the apriori algorithm (as implemented in the arules package). This function lets the user decide on the number of rules to produce and estimates parameters to produce those results.
Association_Rules(sbs.trait.attributes, lhs, rhs, N)
sbs.trait.attributes |
Matrix where each collumn is a trait attribute and each row a genome. Presence or absence is indicated with either a one (1) or zero (0). |
lhs |
A vector containing one or multiple terms for the left-hand-side (antecedent) of the association rules. For more information see https://en.wikipedia.org/wiki/Association_rule_learning. |
rhs |
A vector containing one or multiple terms for the right-hand-side (consequent) of the association rules. For more information see https://en.wikipedia.org/wiki/Association_rule_learning. |
N |
The number of association rules to create (e.g. N = 100 will result in 100 association rules). |
JJM van Steenbrugge
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.