comma2: Comma formatter

Description Usage Arguments Value

View source: R/comma2.R

Description

Per poder escollir entre el "." i la "," com a separador decimal. Útil en plots en versió en espanyol.

Usage

1
comma2(x, dec.mark = NULL, ...)

Arguments

x

a numeric vector to format

dec.mark

The internal code respects the option getOption("OutDec") for the ‘decimal mark’, so if this is set to something other than "." then it takes precedence over argument decimal.mark.

...

other arguments passed on to format.

Value

a function with single parameter x, a numeric vector, that returns a character vector.


IRBLleida/UdBRpackage documentation built on Dec. 24, 2019, 9:10 p.m.