Re: [R] How to preserve the numeric format and digits ?

From: milton ruser <milton.ruser_at_gmail.com>
Date: Thu, 24 Jul 2008 22:12:28 -0300

Like this?

options (scipen=100)
m <- c(400000000, 50000000000)
paste("A", m, "B", sep="")

Regards,

Miltinho astronauta
brazil

On 7/24/08, Daren Tan <daren76_at_hotmail.com> wrote:
>
>
> Instead of
>
> > m <- c(400000000, 50000000000)
> > paste("A", m, "B", sep="")
> [1] "A4e+08B" "A5e+10B"
>
> I want "A400000000" and "A50000000000"
>
> ______________________________________________
> 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.
>

        [[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 Fri 25 Jul 2008 - 01:17:16 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 Fri 25 Jul 2008 - 02:32:36 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