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(x, rspec = NULL)
x | a vector of numeric values. |
---|---|
rspec | a |
a vector of character values (rounded numbers).
Other table helpers:
table_ester()
,
table_glue()
,
table_pvalue()
table_value(0.123)#> [1] "0.12"table_value(1.23)#> [1] "1.2"table_value(12.3)#> [1] "12"#> [1] "160" "160" "108" "258" "360" "225" "360" "147" "141" "168" "168" "276" #> [13] "276" "276" "472" "460" "440" "79" "76" "71" "120" "318" "304" "350" #> [25] "400" "79" "120" "95" "351" "145" "301" "121"