powered by
Convert a vector of numbers into a vector of strings with the number followed by the relative percentage in parenthesis.
fv_num_percent( x, x_digits = getOption("numformdigits"), y_digits = x_digits, sep = "", comma = TRUE, ... )ffv_num_percent(...)
ffv_num_percent(...)
A numeric vector.
The number of digits to round the x vector.
The number of digits to round the y vector.
The separator between the first number and the leading parenthesis.
logical. If TRUE the leading number is comma separated.
TRUE
ignored.
Returns a vector of parenthesis combined strings using vector x followed by the value as a relative percent in parenthesis.
# NOT RUN { fv_num_percent(1:10) fv_num_percent(1:10, x_digits = 0, y_digits = 1, sep = " ") # }
Run the code above in your browser using DataLab