ExtractTable function

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

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

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.

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.

Returns

  • 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)
  • Maintainer: Jose Luis Vicente Villardon
  • License: GPL (>= 2)
  • Last published: 2023-11-21

Useful links