colSums-Rules: Return the sum of each column for the for either the rhs or...

Description Usage Arguments Value

Description

Underlying a rules there is a right-hand side and a left-hand side. Both are stored as matrices. With this function one can calculated the sum of each column, that is the respective number of items within each itemset for either the left-hand side or the right-hand side.

Usage

1
2
## S4 method for signature 'Rules'
colSums(x, lhs = TRUE)

Arguments

x

Object of class Rules

lhs

if true the sum of each column of the left-hand side are calculated, else the sum of each column of the right-hand side.

Value

numeric vector containing the sum of each column of either the rhs or the lhs.


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