dtable_format_old: format a dtable

View source: R/dtable-latex_format.R

dtable_format_oldR Documentation

format a dtable

Description

overall, low-precision formatting of dtable objects - quick and dirty way of getting something ok (hopefully), fast. could be developed...

Usage

dtable_format_old(
  dt,
  b = 1,
  bh = 1,
  hfnc = base::round,
  bl = 2,
  lfnc = NULL,
  br = 2,
  rfnc = base::signif,
  p_b = 1e-04,
  peq0 = TRUE,
  tmax = 30,
  repus = TRUE,
  repwith = "\\_"
)

Arguments

dt

a dtable

b

boundary, if numbers are consistently higher they are handled by 'bh' and 'hfnc', if consistently lower by 'bl' and 'lfnc', and otherwise by 'br' and 'rfnc'

bh

digits argument for hfnc

hfnc

format function for above boundary numbers

bl

digits argument for lfnc

lfnc

format function for below boundary numbers? But current implementation might override this, I can't figure out what is best here

br

digits argument for rfnc

rfnc

format function for other numbers

p_b

threshold for how small p values to show. Any variable which is between 0 and 1 is considered a 'p-value' here, which need not be the case.

peq0

even if we abbreviate small 'p-values' should we explicitly put = "0" if it is equal to zero?

tmax

how many characters to print for a character vector

repus

should we replace "_" with 'repwith' in character variables? (If not LaTeX might fail.)

repwith

that which to replace underscore with, default "\_"


renlund/descripteur documentation built on July 5, 2025, 6:35 a.m.