unique_X_weight {iclogcondist} | R Documentation |
Find Unique Rows in a Matrix and Their Weights
Description
This function finds the unique rows of a given matrix and calculates the frequency (weight) of each unique row. It returns both the unique rows and the weights (the number of occurrences of each row).
Usage
unique_X_weight(X)
Arguments
X |
A matrix. The matrix whose unique rows are to be found. |
Value
A list containing two components:
- unique_X
A matrix of the unique rows from the input matrix.
- weight
An integer vector containing the frequency (weight) of each unique row.
[Package iclogcondist version 1.0.1 Index]