format_numbers_DT: Safe wrapper for DT::formatCurrency Wrapper for...

View source: R/format_numbers_DT.R

format_numbers_DTR Documentation

Safe wrapper for DT::formatCurrency Wrapper for DT::formatCurrency that returns NULL when the input table is NULL (instead of throwing an error).

Description

Safe wrapper for DT::formatCurrency Wrapper for DT::formatCurrency that returns NULL when the input table is NULL (instead of throwing an error).

Usage

format_numbers_DT(x, ...)

Arguments

x

A table object created from DT::datatable()

...

other arguments passed to DT::formatCurrency

Value

Behaves the same output as DT::formatCurrency except when x is NULL. Then NULL is returned and no error is thrown.

Author(s)

Ian Kopacka


eufmdis.adapt documentation built on Sept. 12, 2023, 9:06 a.m.