[R] Supressing Scientific Notation

Daniel Malter daniel at umd.edu
Tue Dec 15 06:49:35 CET 2009


Example:

x=rnorm(1000)
terc.cut.x=cut(x,breaks=quantile(x,probs=c(0,1/3,2/3,1)),labels=c("L","M","H
"),include.lowest=T)

HTH,
Daniel

-------------------------
cuncta stricte discussurus
-------------------------

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Anderson, Chris
Sent: Monday, December 14, 2009 7:17 PM
To: 'r-help at R-project.org'
Subject: [R] Supressing Scientific Notation

I'm trying to display my deciles without scientific notation, but have not
found an option that will allow me to do so. According to web searches, the
options(scipen=999) should remove scientific notation, but it seems not too.
Does this option work with quantcut function? Is there any other option that
can be used?  I am using verison 2.10.0.

library(gtools)
library(gdata)
options(scipen=999)
> parad<-quantcut(benchmarkPara$Benchmark_Total, q=seq(0,1,by=0.1),
na.rm=TRUE)
> table(parad)
parad
 [2.29e+05,2.7e+05]  (2.7e+05,3.69e+05] (3.69e+05,3.99e+05]
(3.99e+05,4.64e+05] (4.64e+05,5.12e+05] (5.12e+05,6.74e+05]
                  3                   2                   2
2                   3                   2
(6.74e+05,7.23e+05] (7.23e+05,7.79e+05] (7.79e+05,1.03e+06]
(1.03e+06,1.49e+06]
                  2                   2                   2
3

Chris Anderson
Data Analyst
Medical Affairs
wk: 925-677-4870
cell: 707-315-8486
Fax:925-677-4670





This electronic message transmission, including any attachments, contains
information which may be confidential, privileged and/or otherwise exempt
from disclosure under applicable law. The information is intended to be for
the
use of the individual(s) or entity named above. If you are not the intended
recipient or the employee or agent responsible for delivering the message
to the intended recipient, you are hereby notified that any disclosure,
copying,
distribution or use of the contents of this information is strictly
prohibited.  If
you have received this electronic transmission in error, please notify the
sender
immediately by telephone (800-676-6777) or by a "reply to sender only"
message and destroy all electronic and hard copies of the communication,
including attachments.  Thank you.

For more information on Paradigm Management Services, LLC, please visit
http://www.paradigmcorp.com

	[[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