relabel.matrix: relabels a matrix label insisting that the labels of each row...

Description Usage Arguments See Also Examples

View source: R/labeltodendro.R

Description

We strongly recommend to use this function before tabletodendro or selectlabels, if you defined the label matrix by yourself.

Usage

1
2

Arguments

x

A numeric matrix of integers.

See Also

tabletodendro, selectlabels

Examples

1
2
3
4
5
6
7
8
9
labmat<-matrix(c(
c(1,1,1,1,1,1,1,1,1),
c(2,2,2,2,1,2,2,2,2), #labels do not appear in increasing order
c(2,2,1,2,2,3,3,3,3), # here too
c(1,1,2,2,2,2,2,3,3), 
c(1,2,3,4,5,6,7,8,9)), ncol=9, byrow=TRUE) 

relabel.matrix(labmat) # gives the relabelled matrix
          

labeltodendro documentation built on May 2, 2019, 5:18 p.m.