[R] format numbers into percentages

From: tom soyer <tom.soyer_at_gmail.com>
Date: Sun, 09 Mar 2008 17:36:39 -0500


Hi,

I am currently using the following to formate numbers into percentages:

x=0.00112
paste(round(x*100,2),"%",sep="")

I am wondering if there is a built in R function that does the same. Does anyone know?

Thanks,

-- 
Tom

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_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.
Received on Sun 09 Mar 2008 - 22:41:08 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 09 Mar 2008 - 23:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive