Learn R Programming

webr (version 0.1.5)

x2Table: Make a chisquare result table

Description

Make a chisquare result table

Usage

x2Table(
  data,
  x,
  y,
  margin = 1,
  show.percent = TRUE,
  show.label = TRUE,
  show.stat = TRUE,
  vanilla = FALSE,
  fontsize = 12,
  ...
)

Arguments

data

A data.frame

x

a column name

y

a column name

margin

numeric If 1 row percent, if 2 col percent

show.percent

logical

show.label

logical

show.stat

logical

vanilla

logical whether or not make vanilla table

fontsize

A numeric

...

Further arguments to be passed to df2flextable()

Examples

Run this code
# NOT RUN {
require(moonBook)
x2Table(acs,sex,DM)
# }

Run the code above in your browser using DataLab