apriori2df: Tidy an 'arules::apriori()' object

Description Usage Arguments Details Value Methods (by generic)

View source: R/utils.R

Description

Converts output from arules::apriori() to a tibble/dataframe.

Usage

1
2
3
4
5
6
7
apriori2df(x)

## S3 method for class 'rules'
tidy(x, ...)

## S3 method for class 'itemsets'
tidy(x, ...)

Arguments

x

An object of class arules::rules or arules::itemsets produced by running arules::apriori()

...

Unused, included for generic consistency only.

Details

Use this instead of arules::inspect(), which only prints to screen.

Value

a tibble (or data.frame) of the rules/itemsets

Methods (by generic)


mdporter/R6018 documentation built on Feb. 15, 2021, 7:56 p.m.