freq_items: Find frequent item sets

Description Usage Arguments Value Examples

View source: R/freq_items.R

Description

freq_item finds every frequent item set depending on the chosen minimum support. The function demands a transaction matrix and a user specified minimum support.

Usage

1
freq_items(input, m_sup)

Arguments

input

Binary matrix containing transaction data, with rows representing transactions and columns representing items. Can be either logical or numeric, every value has to be either 0 / 1 or FALSE / TRUE (0 or FALSE if item is not bought). Columns should be named. freq_item also takes an object class TransactionData.

m_sup

User specified minimum support

Value

Returns an object of class FrequentSets

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
## load data
data(Groceries)
x <- freq_items(Groceries, m_sup = 0.1)
## inspect
summary(x)
plot(x)

## End(Not run)

quentinseifert/unnamed documentation built on Dec. 3, 2019, 11:31 p.m.