BASIX.unique: Extract unique rows of a matrix

Description Usage Arguments Details Author(s) Examples

View source: R/BASIX.unique.R

Description

BASIX.unique returns a matrix with duplicate rows removed. The unique rows ids will be saved as rownames.

Usage

1

Arguments

matrix

a matrix

Details

BASIX.unique is a version of unique specialized on matrices.

The native R solution would be:
unique(matrix)

This function can be applied to numeric as well as character vectors.

Author(s)

Bastian Pfeifer

Examples

1
2
3
4
mat <- matrix(0,3,3)
mat[1,1] <- 1

BASIX.unique(mat)

BASIX documentation built on May 29, 2017, 9:37 a.m.

Related to BASIX.unique in BASIX...