read.PMML

0th

Percentile

Read and Write PMML

This function reads and writes PMML representations (version 4.1) of associations (itemsets and rules).

Keywords
interface
Usage
write.PMML(x, file)
read.PMML(file)
Arguments
x

a rules or itemsets object.

file

name of the PMML file (for read.PMML also a XML root node can be supplied).

Details

Write delegates to package pmml.

References

PMML home page: http://www.dmg.org

See Also

pmml.

Aliases
  • read.PMML
  • write.PMML
Examples
# NOT RUN {
data("Groceries")

rules <- apriori(Groceries, parameter=list(support=0.001))
rules <- head(rules, by="lift")
rules

### save rules as PMML
write.PMML(rules, file = "rules.xml")

### read rules back
rules2 <- read.PMML("rules.xml")
rules2

### compare rules
inspect(rules[1])
inspect(rules2[1])

### clean up
unlink("rules.xml")
# }
Documentation reproduced from package arules, version 1.5-4, License: GPL-3

Community examples

Looks like there are no examples yet.