Use aperm() on a data.frame object

USAGE:

aperm.data.frame(a, ...) 

This is a method for the function aperm() for objects inheriting from class data.frame. See aperm or aperm.default for the general behavior of this function and for the interpretation of a.