otCrossTable: Cross Table

Description Usage Arguments

View source: R/otCrossTable.R

Description

otCrossTable is a function to make 2-dimensional cross table from two variables. It is similar to the function "table", but otCrossTable use a formula to set two variables. This is why other ot-functions use formula style.

Usage

1
otCrossTable(data, model = NULL, omit.na = TRUE, is.test = TRUE)

Arguments

data

a data.frame object including two variables

model

a formula "var_a ~ var_b" style

omit.na

a logical value. If TRUE, NA is deleted from a cross table.

is.test

a logical value. If TRUE, chisq.test and fisher.test are submitted.


momoldo/otmR documentation built on March 27, 2021, 3 a.m.