View source: R/association_matrix.R
| association_matrix | R Documentation |
associations.The association matrix is a matrix where rows correspond to antecedents, columns correspond to consequents, and the values are taken from a specified column of the nugget. Missing values are filled with zeros.
association_matrix(
x,
value,
error_context = list(arg_x = "x", arg_value = "value", call = current_env())
)
x |
A nugget of flavour |
value |
A tidyselect expression (see tidyselect syntax) specifying the column to use for filling the matrix values. |
error_context |
A list of details to be used in error messages.
It must contain:
- |
A pair of antecedent and consequent must be unique in the nugget. If there are multiple rows with the same pair, an error is raised.
A numeric matrix with row names corresponding to antecedents and
column names corresponding to consequents. Values are taken from the
column specified by value. Missing values are filled with zeros.
Michal Burda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.