dformat_num: numerical formating

View source: R/dtable-latex_format.R

dformat_numR Documentation

numerical formating

Description

numerical formating (mainly for dtable_format)

Usage

dformat_num(
  x,
  dg = 1,
  ds = 2,
  maybe.p = TRUE,
  p.bound = 1e-04,
  miss = "",
  some.scientific = TRUE,
  low = 1e-08,
  high = 1e+08,
  ...,
  verbose = TRUE
)

Arguments

x

vector of numeric values

dg

rounding digits for 'great' (abs>1) numbers

ds

significance digits for 'small' numbers (abs<1)

maybe.p

logical; is x possibly p-values?

p.bound

numeric; if p-values, numbers below this will be '<p.bound'

miss

character string to replace missing values

some.scientific

logical; possibly write some numbers in scientific notation?

low

lower threshold for when to resort to scientific notation

high

upper threshold for when to resort to scientific notation

...

to be able to tolerate argument spamming

verbose

logical; tell med things?


renlund/descripteur documentation built on Sept. 24, 2023, 7:07 p.m.