powered by
table_value() casts numeric vectors into character vectors. The main purpose of table_value() is to round and format numeric data for presentation.
table_value()
table_value(x, rspec = NULL)
a vector of character values (rounded numbers).
a vector of numeric values.
a rounding_specification object. If no rspec is given, a default setting will round values to decimal places based on the magnitude of the values.
rounding_specification
rspec
Other table helpers: table_ester(), table_glue(), table_pvalue()
table_ester()
table_glue()
table_pvalue()
table_value(0.123) table_value(1.23) table_value(12.3) with(mtcars, table_value(disp))
Run the code above in your browser using DataLab