inspect

0th

Percentile

Display Associations and Transactions in Readable Form

Provides the generic function inspect and S4 methods to display associations and transactions plus additional information formatted for online inspection.

Keywords
print
Usage
inspect(x, ...)
Arguments
x

a set of associations or transactions or an itemMatrix.

additional arguments can be used to customize the output: setStart, setEnd, itemSep and ruleSep. Items are printed only one per line in case the output lines get very long. This can also be directly controlled using linebreak.

See Also

itemMatrix-class, itemsets-class, rules-class, transactions-class

Aliases
  • inspect
  • inspect,itemMatrix-method
  • inspect,itemsets-method
  • inspect,rules-method
  • inspect,transactions-method
Examples
# NOT RUN {
data("Adult")
rules <- apriori(Adult)
inspect(rules[1000])

inspect(rules[1000], ruleSep = "---->", itemSep = " + ", setStart = "", setEnd ="", 
  linebreak = FALSE)
# }
Documentation reproduced from package arules, version 1.5-4, License: GPL-3

Community examples

Looks like there are no examples yet.