[R] Odp: how to change the format of numeric variable
Petr PIKAL
petr.pikal at precheza.cz
Thu Jun 24 09:30:18 CEST 2010
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.
More information about the R-help
mailing list