tests/test.reorder.factor.R

## Test results before and after loading gdata

m <- factor(c('a','b','c'))

( m1 <- stats::reorder(m, X=c(3, 2, 1)) )

( m2 <- gplots::reorder.factor(m, X=c(3, 2, 1)) )

stopifnot(identical(m1,m2))

Try the gplots package in your browser

Any scripts or data that you put into this service are public.

gplots documentation built on April 25, 2022, 9:06 a.m.