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

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

## 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") ## ---------------------------------------------