makeFIMatrix: Take different input and make them a FIMatrix

Description Usage Arguments Value

Description

Takes a object of class Matrix, ngCMatrix, ngTMatrix, transactions or itemsets and return a corresponding object of class FIMatrix. The rows should represent the itemset and be named. The columns should describe the itemsets. It should be a binary matrix.

Usage

1
makeFIMatrix(input, support, dataset)

Arguments

input

Object of class matrix, sparse matrix, transactions (arules class) or itemsets containing the frequent itemsets.

support

The support values for the provided itemsets. Should have a length corresponding to the columns of the supplied matrix. If no support is provided it has to be recalculated.

dataset

Either this has to be provided or support. Please provide the initial datasets based on which the frequent itemsets from input with minimal support where calculated.

Value

Object of class FIMatrix representing the input object.


TimToebrock/Project_Apriori documentation built on Oct. 16, 2020, 9:22 p.m.