powered by
Print a decimal number in procent format
percentage(x, fmt = "1.1")
a decimal number, usually between -1 and 1
format string, '1.1' means a digit before and after the decimal point will be printed
Character string
# NOT RUN { percentage(c(0,0.1,0.25,1)) percentage(c(0,0.1,0.25,1), fmt="1.4") percentage(c(0,-0.1,0.25,-1), fmt="+1.1") # }
Run the code above in your browser using DataLab