new_fmt: fmt a constructor for class fmt.

new_fmtR Documentation

fmt a constructor for class fmt.

Description

fmt a constructor for class fmt.

Usage

new_fmt(
  n = integer(),
  type = "n",
  digits = rep(0L, length(n)),
  display = dplyr::case_when(type == "mean" ~ "mean", type %in% c("row", "col", "all",
    "all_tabs") ~ "pct", TRUE ~ "n"),
  wn = rep(NA_real_, length(n)),
  pct = rep(NA_real_, length(n)),
  mean = rep(NA_real_, length(n)),
  diff = rep(NA_real_, length(n)),
  ctr = rep(NA_real_, length(n)),
  var = rep(NA_real_, length(n)),
  ci = rep(NA_real_, length(n)),
  rr = rep(NA_real_, length(n)),
  or = rep(NA_real_, length(n)),
  in_totrow = rep(FALSE, length(n)),
  in_tottab = rep(FALSE, length(n)),
  in_refrow = rep(FALSE, length(n)),
  comp_all = NA,
  ref = "",
  ci_type = "",
  col_var = "",
  totcol = FALSE,
  refcol = FALSE,
  color = "",
  ...,
  class = character()
)

Arguments

class

Subclasses to assign to the new object, default: none.


BriceNocenti/tablr documentation built on April 12, 2025, 12:56 a.m.