Learn R Programming

MultBiplotR (version 23.11.0)

ExtractTable: 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)

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

Arguments

x

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

Author

Jose Luis Vicente-Villardon

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.

Examples

Run this code
data(spiders)
spidersbin=Dataframe2BinaryMatrix(spiders)
spiderstable=ExtractTable(spidersbin)

Run the code above in your browser using DataLab