interact.all: Compute all pairwise interactions between the columns of a data matrix
Description
The function multiplies the columns (variables) of a matrix or a data.frame with each other, and produces a new matrix where all pairwise interactions are present. This also includes multiplying a column with its self, thus effectively returning a squared column.
Usage
interact.all(input)
Value
A matrix where columns of the original data matrix have been multiplied, indicating column names coupled with a colon in-between
Arguments
input
A data matrix (of class matrix or data.frame) for which all column-wise multiplications are to be computed