This function converts an
xtabs object to a
an object of class
additional arguments to be passed to or from methods.
xtabs object is indeed already a matrix, but won't be converted to a pure matrix by
as.matrix.default function, as its class definition will remain unchanged. Some functions expecting a pure matrix may fail, when fed with a
as.matrix.xtabs will drop the classes and the call attribute.
unclass would as well discard the classes
table, but retain the
Andri Signorell <email@example.com>
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.