unique_X_weight: Find Unique Rows in a Matrix and Their Weights

View source: R/iclogcondist_functions.R

unique_X_weightR 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.


iclogcondist documentation built on April 4, 2025, 5:18 a.m.