bind.tables | R Documentation |
Function borrwed from RKward to bind tables. You can use it to join two statistic and format them with ftable
bind.tables(...)
tab1 <- xtabs(Freq ~ Type + Cont, data=MASS::housing) ptab1 <- prop.table(tab1) # Join the a contingency table with the proportion table bind.tables(n = tab1, prop = ptab1) # You can use ftable to get a more readable output ftable(bind.tables(n = tab1, prop = ptab1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.