DetSupport: Determine the support of a matrix of candidate set within the...

Description Usage Arguments Value

View source: R/DetSupport.R

Description

Determine the support of a matrix of candidate set within the transactions.

Usage

1
DetSupport(cand, Transaction, same_item_num = FALSE)

Arguments

cand

This should represent the matrix of candidates for which the support has to be checked. It has to be an sparse incidence matrix where the rows do describe the different items. Each column should represent one candidate. Also it has to have rownames that are a subset of the rownames of Transaction.

Transaction

This should be all the transaction from which the occurence (support) of the candidate should be checked. It has to be a incident matrix with named rows that do represent the different items.

same_item_num

If all itemsets in cand do have the same number of items one should set this argument to TRUE. This reduces the run-time of the algorithm.

Value

The support of the candidates wihtin the transactions as a vector of floating-point value.


TimToebrock/Rpriori documentation built on Oct. 18, 2020, 9:41 p.m.