ExtractTable | R Documentation |
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)
x |
A matrix of integers containing information of discrete variables. The input matrix must be numerical for the procedure to work properly. |
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.
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 |
Jose Luis Vicente-Villardon
data(spiders)
spidersbin=Dataframe2BinaryMatrix(spiders)
spiderstable=ExtractTable(spidersbin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.