tt_formatNum: This function formats numbers in a table within a LaTeX...

View source: R/tt-formatNum.R

tt_formatNumR Documentation

This function formats numbers in a table within a LaTeX document.

Description

This function formats numbers in a table within a LaTeX document.

Usage

tt_formatNum(
  x,
  dec = 4,
  big.mark = ",",
  percentage = F,
  dollar = F,
  se = F,
  pvalues = NULL,
  surround = ""
)

Arguments

x

The number(s) to be formatted (numeric).

dec

Number of decimal places (numeric).

big.mark

Used as mark within large numbers; normally, a comma (as in 1,201,390) (character).

percentage

(logical)

dollar

(logical)

se

(logical)

pvalues

(numeric)

surround

(string) allows to surround the results with text


setzler/textables documentation built on April 6, 2023, 7:40 p.m.