bind.tables: Join two tables

bind.tablesR Documentation

Join two tables

Description

Function borrwed from RKward to bind tables. You can use it to join two statistic and format them with ftable

Usage

bind.tables(...)

Examples

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))


andresnecochea/multitabulation documentation built on June 15, 2022, 5:55 a.m.