lism: Runs the logical itemset mining algorithm to generate pairs...

Description Usage Arguments Examples

Description

Runs the logical itemset mining algorithm to generate pairs of items

Usage

1
lism(data, item_col, link_col, min_cooccur_cnt = 0, min_consistency = 0.1)

Arguments

data

A dataframe containing

item_col

The name of the column in the dataframe containing the item idenfifier

link_col

The name of the column in the dataframe linking the paris of items

min_cooccur_cnt

The minimum times a cooccuring pair can cooccur to be consider

min_consistency

The minimum information criteria to retain a pair in the output data set

Examples

1
2
3
4
data <- data.frame(item_id = c(1,3,4,6,3,4,3,5,6,1,2,1,4,2),
                   trans_id = c(1,2,3,4,1,2,3,4,1,2,3,4,1,2))
lism(data, item_col = "item_id", link_col = "trans_id",
     min_consistency = 0.2)

mvanwyk/logical-itemset-miner documentation built on May 15, 2019, 5:50 p.m.