style_num {pillar} | R Documentation |
Functions that allow implementers of formatters for custom data types to maintain a consistent style with the default data types.
style_num(x, negative, significant = rep_along(x, TRUE)) style_subtle(x) style_na(x) style_neg(x)
x |
The character vector to style. |
negative, significant |
Logical vector the same length as |
style_num( c("123", "456"), negative = c(TRUE, FALSE) ) style_num( c("123", "456"), negative = c(TRUE, FALSE), significant = c(FALSE, FALSE) ) style_subtle("text") style_na("NA") style_neg("123")