ExtractTable: Extracts unique patterns and its frequencies for a discrete...

View source: R/ExtractTable.R

ExtractTableR Documentation

Extracts unique patterns and its frequencies for a discrete data matrix (numeric)

Description

Extracts the patterns and the frequencies of a discrete data matrix reducing the size of the data matrix in order to accelerate calculations in some techniques.

Usage

ExtractTable(x)

Arguments

x

A matrix of integers containing information of discrete variables. The input matrix must be numerical for the procedure to work properly.

Details

For any numerical matrix, calculates the different patterns and the frequencies associated to each pattern The result contains the pattern matrix, a vector with the frequencies, a list with rows sharing the same pattern. The final pattern matrix has different ordering than the original matrix.

Value

OriginalNames

Names before grouping the equal rows

Patterns

The reduced table with only unique patterns

EqualRows

A list with as many components as unique patterns specifying the original rows with each pattern. That will allow for the reconstruction of the initial matrix

Author(s)

Jose Luis Vicente-Villardon

Examples

data(spiders)
spidersbin=Dataframe2BinaryMatrix(spiders)
spiderstable=ExtractTable(spidersbin)

MultBiplotR documentation built on Nov. 21, 2023, 5:08 p.m.