BASIX.unique | R Documentation |
BASIX.unique
returns a matrix with duplicate rows removed.
The unique rows ids will be saved as rownames.
BASIX.unique(matrix)
matrix |
a matrix |
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.
Bastian Pfeifer
mat <- matrix(0,3,3) mat[1,1] <- 1 BASIX.unique(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.