stattable.funs | R Documentation |
These functions may be used as contents
arguments to the
function stat.table
. They are defined internally in
stat.table
and have no independent existence.
count(id)
ratio(d,y,scale=1, na.rm=TRUE)
percent(...)
id |
numeric vector in which identical values identify the same individual. |
d , y |
numeric vectors of equal length ( |
scale |
a scalar giving a value by which the ratio should be multiplied |
na.rm |
a logical value indicating whether |
... |
a list of variables taken from the |
When used as a contents
argument to stat.table
, these
functions create the following tables:
count |
If given without argument ( |
ratio |
returns a table of values
|
percent |
returns a table of percentages of the
classifying variables. Variables that are in the |
Martyn Plummer
stat.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.