Skip to content
Back to formatted view

Raw Message

Message-ID: <da79af330803091601g53b16041n4793317d1c29a1a4@mail.gmail.com>
Date: 2008-03-09T23:01:35Z
From: Henrique Dallazuanna
Subject: format numbers into percentages
In-Reply-To: <65cc7bdf0803091536i726ee33dyc4b4f549ab07e2e@mail.gmail.com>

Perhaps:

sprintf("%g%%", x*100)

On 09/03/2008, tom soyer <tom.soyer at gmail.com> wrote:
> 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.
>


-- 
Henrique Dallazuanna
Curitiba-Paran?-Brasil
25? 25' 40" S 49? 16' 22" O