prefrecset {RecAssoRules}R Documentation

Mining for frequent patterns.

Description

Provides a R DataFrame with 3 columns , the set-names , their support and relative support. When lauching the function, The BinaryMatrix is ordered in ascendant colsums order. For each column, the frequent itemSets containing the current tested item are extracted with the traversal function.

Usage

prefrecset (Bitmax , varnames , relativeSup )

Arguments

Bitmax

A binary DataFrame

varnames

A vector of character or a Matrix character.

relativeSup

The wanted relative min Support value.

Examples


data("Transacfruits")
## Import and build Transafruits as binary matrix.
binaryfruits = transactiontoBitmax (as.matrix(Transacfruits),",")
itemsets = prefrecset (binaryfruits, names(binaryfruits), 0.02)
## Mine frequents itemSet from Transacfruits with a relative min support of 0.02.

[Package RecAssoRules version 1.0 Index]