| ntable | R Documentation | 
Nicely formatted tables, with row or column marginals etc.
ntable(x,y=NULL,
       percent=1,digits=2,
       row=FALSE,col=FALSE)
x | 
 vector or   | 
y | 
 vector of   | 
percent | 
 integer, 1 for row percentages (default), 2 for column percentages  | 
digits | 
 integer, digits to print after decimal place (default is 2)  | 
row | 
 logical, if   | 
col | 
 logical, if   | 
A wrapper function to prop.table that produces prettier
looking results.
nothing returned; the function prints the table and exits silently.
Jim Fearon jfearon@stanford.edu
prop.table, table
data(bioChemists)
attach(bioChemists)
ntable(fem)
ntable(fem,mar,row=TRUE)
ntable(fem,mar,per=2,col=TRUE)
ntable(fem,mar,per=2,row=TRUE,col=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.