Skip to content
Prev 2553 / 7419 Next

interpreting adonis results

On Fri, 2011-11-25 at 11:41 +0200, Jari Oksanen wrote:
<snip />
droplevels() would be what the cool kids would use, just to be hip ;-)
It's new to recent versions of R (>= 2.13.0 IIRC). For factors it is
just a roundabout way of doing `factor(myfac)`:
function (x, ...) 
factor(x)
<environment: namespace:base>

but there is a data.frame method which drops empty levels for all
factors in a data frame, and package authors can write other methods
which might become useful in various places in the future. So good to
know that `droplevels()` exists.
I'll take a look at adding a test/fix to vegan.

G