Coerce to an Array
Usage
# S4 method for class 'MCMC'
as.matrix(x, ...)
# S4 method for class 'PhasesMCMC'
as.array(x, ...)Note
June 2026: aperm.default() now copy attributes, this change how apply() works on classed objects. The simplest "fix" is to add an aperm() S3 method for the class which drops attributes as aperm.default() previously did. Alternatively, one could also consider providing as.matrix()/as.array() methods which change to standard matrix/array.