[R] Odp: how to change the format of numeric variable

From: Petr PIKAL <petr.pikal_at_precheza.cz>
Date: Thu, 24 Jun 2010 09:30:18 +0200

Hi

see
?options and scipen parameter
e.g. options(scipen=9)

Regards
Petr

r-help-bounces_at_r-project.org napsal dne 24.06.2010 08:39:29:

> Hi,
>
> The format problem is really annoying. How to get rid of it?
>
> x
> [1] 1e+06
>
> And also when I do barplot,
>
> x=rnorm(100,mean=1000)
>
barplot(table(cut(x,breaks=c(0,50,100,150,200,250,300,350,400,450,500,1000,
> 2000,5000,10000))))
>
> The data will show as scientific format, when it is larger than 999
(1e+03,
> 5e+3).
>
> I would like all the data in the digit format (1000, 5000).
>
> Does any function works for this?
>
> Big thanks
>
> Yi
>
> [[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.



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 Thu 24 Jun 2010 - 07:36:32 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 Thu 24 Jun 2010 - 07:40:35 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