Function for making Cross Tables.
Usage
crosstable(
data,
vars,
group,
sty = "nejm",
excl = FALSE,
cont = "mean",
pcat = "chisq"
)
Arguments
- data
The data as a data frame.
- vars
variable in the rows
- group
variable in the column
- sty
.
- excl
.
- cont
.
- pcat
.
Value
A results object containing:
results$todo | | | | | a html |
results$todo2 | | | | | a html |
results$tablestyle1 | | | | | a html |
results$tablestyle2 | | | | | a html |
results$tablestyle3 | | | | | a html |
results$tablestyle4 | | | | | a html |
Examples
# \donttest{
# example will be added
# }