.BG
.FN table
.TL
Create Contingency Table from Categories
.CS
table(...)
.AG ...
any number of objects, each to be interpreted as a
category.
All arguments must be of equal length.
Together, they define a multi-way ragged array of as many dimensions
as there are arguments.
Missing values (`NA's) are allowed.
.br
.ne 4
.RT
a multi-way array containing the number of observations in the cells
defined by the arguments to `table'.   For example, if
.Cs
z \(<- table(arg1, arg2, arg3)
.Ce
then `z[i,j,k]' is the number of times that the combination of the
`i'-th level of the first category, the `j'-th level of the second,
and the `k'-th level of the third appeared together in the data.
A combination is not counted if missing values are present in the corresponding
element of any of the arguments.
.PP
The `dimnames' attribute of the array contains the `levels'
attribute of each of the individual.
.SA
Functions `cut' and `category' create categories;
`tapply' can be used for applying
functions to observations in table cells.
.EX
table(age,sex,race,income)
.KW category
.WR
