relabel: relabels a vector, insisting that the labels appear in...

Description Usage Arguments Details See Also Examples

View source: R/labeltodendro.R

Description

If you need to relabel a huge matrix, use relabel.matrix.

Usage

1
2

Arguments

x

a vector of integers

Details

This calls a C function, hence it is relatively fast.

See Also

relabel.matrix, selectlabels

Examples

1
2
3
x<-c(2,2,2,2,1,2,2,2,2) #labels do not appear in increasing order
relabel(x) # gives the relabelled vector
          

labeltodendro documentation built on May 29, 2017, 6:07 p.m.