aruleTrain: Mines association rules from an input data.frame

Description Usage Arguments Examples

View source: R/aruleTrain.R

Description

This function mnes association rules from an input data.frame but does nothing more

Usage

1
2
3
aruleTrain(data, productkey, customerkey, support = 0.01,
  confidence = 0.7, minlen = 2,
  maxlen = as.integer(length(unique(data$productkey)) + 1))

Arguments

data

A dataframe containing dataframe as input in tidy format with one customer-item pair per row. This data.frame must contain two columns: a customer ID and a product ID.

productkey

The column containing item ID's

customerkey

The column containing customer ID's

support

Minimum support of the mined association rules

confidence

Minimum confidence of the mined association rules

minlen

Minimum length of the mined association rules

maxlen

Maximum length of the mined association rules

Examples

1
aruleTrain(data, productkey, customerkey, cupport, confidence, minlen, maxlen)

HenrikVarmer/aruleRec documentation built on Sept. 8, 2020, 10:39 a.m.