powered by
Returns strings of the same length as p, displaying the 100 * p percentages.
p
100 * p
percent(p, d = 0, sep = " ")
character vector of the same length as p.
number(s) in \([0,1]\) -- to be ``displayed'' as percentage(s).
number of digits after decimal point.
separator to use before the final "%".
"%"
Martin Maechler
percent(0.25) noquote(percent((1:10)/10)) (pc <- percent((1:10)/30, 1, sep="")) noquote(pc)
Run the code above in your browser using DataLab