table2: Cross Tabulation and Table Creation

Description Usage Arguments Value Examples

View source: R/table2.R

Description

table2 uses the cross-classifying factors to build a contingency table of the counts at each combination of factor levels.a faster version.

Usage

1
table2(x, y)

Arguments

x

the first vector,any length

y

the second vector,needing same length

Value

a contingency table n

Examples

1
2
3
4
5
6
## Not run: 
a=c(0,1,2,1,1,0,0,1)
b=c(0,0,1,1,1,0,1,1)
table2(a,b)

## End(Not run)

lvyuewen/StatComp18089 documentation built on May 5, 2019, 11:07 p.m.