diff --git a/CONTRIBUTING.html b/CONTRIBUTING.html index d8254c0bc1..d4d55179c1 100644 --- a/CONTRIBUTING.html +++ b/CONTRIBUTING.html @@ -85,7 +85,8 @@
.Rd
files in the man
folder).Many functions share parameters. For common parameters like rows
, columns
, data
, we use @inheritParams
to document them. Only document these parameters if there is a special case for the function you are documenting. In this case, go to R/format-data.R
, copy the parameter documentation to the desired function and add additional details.
The output format of the resulting character vector. This can either be +
The output style of the resulting character vector. This can either be
"auto"
(the default), "plain"
, "html"
, "latex"
, "rtf"
, or
"word"
. In knitr rendering (i.e., Quarto or R Markdown), the "auto"
option will choose the correct output
value
4
decimal places, the formatted value
-becomes "2.3400"
. The trailing zeros can be removed with
-drop_trailing_zeros = TRUE
. If you always need decimals = 0
, the
-fmt_integer()
function should be considered.
+becomes "2.3400"
.
4
decimal places, the formatted value
-becomes "2.3400"
. The trailing zeros can be removed with
-drop_trailing_zeros = TRUE
. If you always need decimals = 0
, the
-fmt_integer()
function should be considered.
+becomes "2.3400"
.
4
decimal places, the formatted value
-becomes "2.3400"
. The trailing zeros can be removed with
-drop_trailing_zeros = TRUE
. If you always need decimals = 0
, the
-fmt_integer()
function should be considered.
+becomes "2.3400"
.
4
decimal places, the formatted value
-becomes "2.3400"
. The trailing zeros can be removed with
-drop_trailing_zeros = TRUE
. If you always need decimals = 0
, the
-fmt_integer()
function should be considered.
+becomes "2.3400"
.
4
decimal places, the formatted value
-becomes "2.3400"
. The trailing zeros can be removed with
-drop_trailing_zeros = TRUE
. If you always need decimals = 0
, the
-fmt_integer()
function should be considered.
+becomes "2.3400"
.
gt_tbl
objects, or,
-made by splitting a gt table with gt_split()
.
+This is a gt_group
container object. It is typically generated through
+use of the gt_group()
function along with one or more gt_tbl
objects,
+or, made by splitting a gt table with gt_split()
.
decimals
-will default to 2
when using the currency()
helper function.
-If nothing is provided here but a locale
value has been set (either in
-this function call or as part of the initial gt()
call), the currency
-will be obtained from that locale. Virtually all locales are linked to a
-territory that is a country (use info_locales()
for details on all
-locales used in this package), so, the in-use (or de facto) currency will
-be obtained. As the default locale is "en"
, the "USD"
currency will be
-used if neither a locale
nor a currency
value is given.
2
when using the currency()
helper function.
4
decimal places, the formatted value
-becomes "2.3400"
. The trailing zeros can be removed with
-drop_trailing_zeros = TRUE
. If you always need decimals = 0
, the
-fmt_integer()
function should be considered.
+scalar<numeric|integer>(val>=0)
// default: NULL
(optional
)
The decimals
values corresponds to the exact number of decimal places to
+use. This value is optional as a currency has an intrinsic number of
+decimal places (i.e., the subunits). A value such as 2.34
can, for
+example, be formatted with 0
decimal places and if the currency used is
+"USD"
it would result in "$2"
. With 4
decimal places, the formatted
+value becomes "$2.3400"
.
Drop the trailing decimal mark
scalar<logical>
// default: TRUE
A logical value that determines whether decimal marks should always appear
-even if there are no decimal digits to display after formatting (e.g., 23
-becomes 23.
if FALSE
). By default trailing decimal marks are not shown.
use_subunits = FALSE
or decimals = 0
a formatted value
+such as "$23"
can be fashioned as "$23."
by setting
+drop_trailing_dec_mark = FALSE
.
Any use of suffixing
(where it is not set expressly as FALSE
) means
-that any value provided to scale_by
will be ignored.
scale_by
will be ignored.
+If using system = "ind"
then the default suffix set provided by
+suffixing = TRUE
will be the equivalent of c(NA, "L", "Cr")
. This
+doesn't apply suffixes to the thousands range, but does express values in
+lakhs and crores.
The placement of the currency symbol. This can be either be left
(as
-in "$450"
) or right
(which yields "450$"
).
singl-kw:[left|right]
// default: "left"
The placement of the currency symbol. This can be either be "left"
(as
+in "$450"
) or "right"
(which yields "450$"
).
4
decimal places, the formatted value
-becomes "2.3400"
. The trailing zeros can be removed with
-drop_trailing_zeros = TRUE
. If you always need decimals = 0
, the
-fmt_integer()
function should be considered.
+becomes "2.3400"
.
Any use of suffixing
(where it is not set expressly as FALSE
) means
-that any value provided to scale_by
will be ignored.
scale_by
will be ignored.
+If using system = "ind"
then the default suffix set provided by
+suffixing = TRUE
will be the equivalent of c(NA, "L", "Cr")
. This
+doesn't apply suffixes to the thousands range, but does express values in
+lakhs and crores.
4
decimal places, the formatted value
-becomes "2.3400"
. The trailing zeros can be removed with
-drop_trailing_zeros = TRUE
. If you always need decimals = 0
, the
-fmt_integer()
function should be considered.
+becomes "2.3400"
.
Any use of suffixing
(where it is not set expressly as FALSE
) means
-that any value provided to scale_by
will be ignored.
scale_by
will be ignored.
+If using system = "ind"
then the default suffix set provided by
+suffixing = TRUE
will be the equivalent of c(NA, "L", "Cr")
. This
+doesn't apply suffixes to the thousands range, but does express values in
+lakhs and crores.
4
decimal places, the formatted value
-becomes "2.3400"
. The trailing zeros can be removed with
-drop_trailing_zeros = TRUE
. If you always need decimals = 0
, the
-fmt_integer()
function should be considered.
+becomes "2.3400"
.
4
decimal places, the formatted value
-becomes "2.3400"
. The trailing zeros can be removed with
-drop_trailing_zeros = TRUE
. If you always need decimals = 0
, the
-fmt_integer()
function should be considered.
+becomes "2.3400"
.
singl-kw:[right|left]
// default: "right"
This option governs the placement of the percent sign. This can be either
-be right
(the default) or left
.
"right"
(the default) or "left"
.
4
decimal places, the formatted value
-becomes "2.3400"
. The trailing zeros can be removed with
-drop_trailing_zeros = TRUE
. If you always need decimals = 0
, the
-fmt_integer()
function should be considered.
+becomes "2.3400"
.