mtable | R Documentation |
Creates one-way and two-way tables using every level of a multiple response object. Use table(as.character(x))
to tabulate combinations of levels
mtable(x, y, na.rm = TRUE)
x |
|
y |
|
na.rm |
remove missing values? |
A 1-d or 2-d array with names giving the levels
data(ethnicity) mtable(ethnicity) table(as.character(ethnicity)) data(nzbirds) nzbirds<-as.mr(nzbirds) ## co-occurence table mtable(nzbirds, nzbirds) ## table by a factor v<-rep(c("A","B"),3) mtable(nzbirds,v) data(nzbirds) mtable(nzbirds>0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.