brformat: Wrapper around format

View source: R/helpers.R

brformatR Documentation

Wrapper around format

Description

This function is only a wrapper around format function that uses standard brazillian formats by default

Usage

brformat(
  x,
  decimal.mark = ",",
  big.mark = ".",
  digits = 2,
  nsmall = 2,
  scientific = FALSE,
  ...
)

brf(
  x,
  decimal.mark = ",",
  big.mark = ".",
  digits = 2,
  nsmall = 2,
  scientific = FALSE,
  ...
)

Arguments

x

a number to be formatted by format

digits

a positive integer indicating how many significant digits are to be used for numeric and complex x. The default, NULL, uses getOption("digits"). This is a suggestion: enough decimal places will be used so that the smallest (in magnitude) number has this many significant digits, and also to satisfy nsmall. (For more, notably the interpretation for complex numbers see signif.)

nsmall

the minimum number of digits to the right of the decimal point in formatting real/complex numbers in non-scientific formats. Allowed values are 0 <= nsmall <= 20.

scientific

Either a logical specifying whether elements of a real or complex vector should be encoded in scientific format, or an integer penalty (see options("scipen")). Missing values correspond to the current default penalty.

...

further arguments passed to or from other methods.


lfpdroubi/appraiseR documentation built on April 14, 2024, 10:27 p.m.