Description Usage Arguments Value Note Author(s) Examples
my.table.NA tabulates a vector of values and lists NA and NaN at the
beginning, if they occur.
my.table.margin generates contingency table together with both margins of two factors, or of a matrix, if only one parameter is given.
1 2  | my.table.NA(x, relative=FALSE)
my.table.margin(v,w)
 | 
x | 
 A vector, will be converted to factors.  | 
relative | 
 = TRUE if relative values should be returned.  | 
v | 
 factor or matrix.  | 
w | 
 factor.  | 
A contingency table.
Uses table.
Christian W. Hoffmann <christian@echoffmann.ch> 
and   John Fox jfox@mcmaster.ca (my.table.margin)
1 2 3 4 5 6  |   x <- c(1,NA,2,5,-1:7)
  my.table.NA(x)
  f1 <- sample(1:5,100,replace=TRUE) 
  f2 <- sample(1:5,100,replace=TRUE)
  my.table.margin(f1,f2)
  my.table.margin(matrix(1:24,4))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.