powered by
relabel.matrix
relabel(x)
C
x<-c(2,2,2,2,1,2,2,2,2) #labels do not appear in increasing order relabel(x) # gives the relabelled vector
Run the code above in your browser using DataLab