Skip to content
Prev 123776 / 398498 Next

Table and ftable

Try this which gives an object of the required shape and of
class c("xtabs", "table") :

   xx <- xtabs(area ~ sic + level, DF)

You can optionally do it like this to make it class "matrix"

   xx <- xtabs(area ~ sic + level, DF)[]

and if you don't want the call attribute:

   attr(xx, "call") <- NULL
On 9/4/07, Giulia Bennati <bennati at gmail.com> wrote: