Learn R Programming

rCBA (version 0.4.3)

frameToRules: Conversion of data.frame to rules from arules

Description

Conversion of data.frame to rules from arules

Usage

frameToRules(model)

Arguments

model

data.frame with rules

Value

arules rules representation

Examples

Run this code
# NOT RUN {
library("rCBA")

model <- data.frame("rules" = c("{X=1} => {Y=1}","{X=0} => {Y=0}"),
                    "support" = c(0.5,0.5),
                    "confidence" = c(0.5,0.5),
                    "lift" = c(1.0,1.0))

rules <- rCBA::frameToRules(model)
inspect(rules)

# }

Run the code above in your browser using DataLab