[R] how to convert digits to specified decimal vectors

R. Michael Weylandt michael.weylandt at gmail.com
Fri Mar 23 19:58:09 CET 2012


format
sprintf

Michael

On Fri, Mar 23, 2012 at 8:16 AM, sagarnikam123 <sagarnikam123 at gmail.com> wrote:
>> x
> [1] 7 8 9 10 11 12
>
> convert such that
>
> 7.0000
> 8.0000
> 9.0000
> 10.000
> 11.000
> 12.000
>
> total size of 5 digits for each value
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/how-to-convert-digits-to-specified-decimal-vectors-tp4498588p4498588.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.



More information about the R-help mailing list