arulesViz (version 1.3-3)

inspectDT: Inspect Associations Interactively Using datatable

Description

Uses datatable to create a HTML table widget using the DataTables library. Rules can be interactively filtered and sorted.

Usage

inspectDT(x, ...)

Arguments

x

an object of class "rules" or "itemsets".

...

additional arguments. precision controls the precision used to print the quality measures (defaults to 2). All other arguments are passed on to datatable.

Value

A datatable htmlwidget.

See Also

datatable in DT.

Examples

Run this code
# NOT RUN {
data(Groceries)
rules <- apriori(Groceries, parameter=list(support=0.005, confidence=0.5))
rules

inspectDT(rules)

### save table as a html page.
p <- inspectDT(rules)
htmlwidgets::saveWidget(p, "arules.html", selfcontained = FALSE)
browseURL("arules.html")
# }

Run the code above in your browser using DataCamp Workspace