On Thu, 2007-09-27 at 14:36 +0100, stat stat wrote: > I am wondering if there is any procedure to write a particular value > in Percentage format, still maintaining it's numeric character. for > example I want to write '.33' as '33%'
See ?sprintf > sprintf("%.0f%%", .33 * 100) [1] "33%" Note that the trailing '%' needs to be doubled to be recognized as the character and not a format specifier. HTH, Marc Schwartz ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.