percent {sca} | R Documentation |
Returns strings of the same length as p
, displaying the
100 * p
percentages.
percent(p, d = 0, sep = " ")
p |
number(s) in [0,1] to be ``displayed'' as percentage(s). |
d |
number of digits after decimal point. |
sep |
separator to use before the final "%" . |
character vector of the same length as p
.
Martin Maechler
percent(0.25) noquote(percent((1:10)/10)) (pc <- percent((1:10)/30, 1, sep="")) noquote(pc)