Helper to Convert Data into Transactions
Converts a data.frame into transactions by applying class-based discretization.
prepareTransactions(formula, data, disc.method = "mdlp", match = NULL)
formula |
the formula. |
data |
a data.frame with the data. |
disc.method |
Discretization method used to discretize continuous variables if data is a data.frame
(default: |
match |
typically |
An object of class transactions
from arules with an attribute called "disc_info"
that
contains information on the used discretization for each column.
Michael Hahsler
data("iris") iris_trans <- prepareTransactions(Species ~ ., iris) iris_trans
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.