new_tab {tabxplor}R Documentation

A constructor for class tabxplor_tab

Description

A constructor for class tabxplor_tab

Usage

new_tab(
  tabs = tibble::tibble(),
  subtext = "",
  chi2 = tibble::tibble(tables = character(), pvalue = double(), df = integer(), cells =
    integer(), variance = double(), count = integer()),
  ...,
  class = character()
)

new_grouped_tab(
  tabs = tibble::tibble(),
  groups,
  subtext = "",
  chi2 = tibble::tibble(tables = character(), pvalue = double(), df = integer(), cells =
    integer(), variance = double(), count = integer()),
  ...,
  class = character()
)

Arguments

tabs

A table, stored into a tibble data.frame. It is generally made with tab, tab_many or tab_plain.

subtext

A character vector to print legend lines under the table.

chi2

A tibble storing information about pvalues and variances, to fill with tab_chi2.

...

Needed to implement subclasses.

class

Needed to implement subclasses.

groups

The grouping data.

Value

A tibble of class tabxplor_tab.

A tibble of class tabxplor_grouped_tab.


[Package tabxplor version 1.1.3 Index]