aruleRec: Easy and fast recommendations with association rule learning...

Description Usage Arguments Examples

View source: R/aruleRec.R

Description

The aruleRec function generates recommendations from an input dataframe.

Usage

1
2
3
aruleRec(data, productkey, customerkey, keep_all = FALSE,
  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
aruleRec(data = dat, productkey = ProductKey, customerkey = CustomerKey, keep_all = FALSE, minlen = 2, maxlen = 20, support = 0.01, confidence = 0.7)

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