unique_X_weight {iclogcondist} | R Documentation |
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).
unique_X_weight(X)
X |
A matrix. The matrix whose unique rows are to be found. |
A list containing two components:
A matrix of the unique rows from the input matrix.
An integer vector containing the frequency (weight) of each unique row.