similar to: R is converting arg input to scientific notation, which is bad!

Displaying 20 results from an estimated 700 matches similar to: "R is converting arg input to scientific notation, which is bad!"

2003 Mar 16
0
scientific notation
If I knew this, I have forgotten it: Is there a way to force R to forgo use of scientific notation, e.g. to use .000029 instead of 2.9e-05? (Aside from using formatC for example) I run across this every now and then and work around it (multiple values by 100, for example) but cannot find any way to deal with it otherwise. A particularly problematic place it pops up is in axis tick labels.
2010 Sep 27
1
scientific vs. fixed notation in xyplot()
Hi I am using xyplot() to plot on the log scale by using scale=list(log=T) argument. For example: xyplot(1:10~1:10, scales=list(log=T)) But the axis labels are printed as scientific notation (10^0.0, etc), instead of fixed notation. How can I change that to fixed notation? options(scipen=4) doesn't work on xyplot() Thanks John
2010 Feb 02
2
Suppressing scientific notation on plot axis tick labels
Is there a better alternative to x = c(1e7, 2e7) x.lb = c(0,1e7,2e7) s.lb = format(x.lb, scientific = FALSE, big.mark = ",") barplot(x, yaxt = "n", ylab = "") axis(side = 2, at = x.lb, labels = s.lb) (I am sure there is a better alternative to line 2 :)). Thank you. -- View this message in context:
2009 Sep 29
0
[LLVMdev] [PATCH] llvm-bcanalyzer: print percentages without scientific notation
Hello, llvm-bcanalyzer told me that the size of the BLOCKINFO_BLOCK of my file is "1.345017e+01" percent of the whole file. This is not very readable. The attached patch prints the percentage without scientific notation so we get something bit more readable: Block ID #0 (BLOCKINFO_BLOCK): Num Instances: 1 Total Size: 637b/79.62B/19W % of file: 13.450169 Num
2009 Sep 29
2
[LLVMdev] [PATCH] llvm-bcanalyzer: print percentages without scientific notation
Hi, Andreas Neustifter <astifter-llvm at gmx.at> writes: > Maybe you can use the already available "include/llvm/Support/Format.h"? Thanks, that simplifies the patch a lot. See the attached patch. Btw, llvm-bcanalyzer.cpp seems to also use fprintf -- does mixing it with errs() cause problems and should it be converted to use format()? best regards, Timo Lindfors
2009 Sep 29
0
[LLVMdev] [PATCH] llvm-bcanalyzer: print percentages without scientific notation
On Sep 29, 2009, at 9:44 AM, Timo Juhani Lindfors wrote: > Hi, > > Andreas Neustifter <astifter-llvm at gmx.at> writes: >> Maybe you can use the already available "include/llvm/Support/ >> Format.h"? > > Thanks, that simplifies the patch a lot. See the attached patch. It looks like something similar got applied back in r82772 on 9/25. > > Btw,
2003 Feb 06
1
signif {base}: changes to scientific notation
PROBLEM `signif' does change to scientic notation at different levels depending on the number of significant digits in the input. This can generate tables where figures change ``irregularly'' from normal to scientific notation. PROPOSAL The change to the scientific notation should be made only if the figure in scientific notation - with potentially as
2010 Feb 02
0
[R] Suppressing scientific notation on plot axis tick labels (PR#14203)
murdoch at stats.uwo.ca wrote: > On 02/02/2010 6:20 AM, Dimitri Shvorob wrote: >> Ruben Roa has kindly suggested using 'scipen' option - cf. >> >>> fixed notation will be preferred unless it is more than =C3=A2=E2=82=AC= =CB=9Cscipen=C3=A2=E2=82=AC=E2=84=A2 digits >>> wider. >> However,=20 >> >> options(scipen =3D 50) >> x =3D
2013 Jan 02
1
scientific notation and comparison with character variable
L.S. Is the following expected and/or documented? > 1e-2 < "0.05" [1] TRUE > 1e-4 < "0.05" [1] FALSE Many thanks in advance for any pointer. Best, Tobias > sessionInfo() R Under development (unstable) (2013-01-01 r61512) Platform: i386-w64-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3]
2019 Mar 22
1
prettyNum digits=0 not compatible with scientific notation
> On 22 Mar 2019, at 18:07 , Martin Maechler <maechler at stat.math.ethz.ch> wrote: > > gives (on Linux R 3.5.3, Fedora 28) > > d=10 d=7 d=2 d=1 d=0 > [1,] "123456" "123456" "123456" "1e+05" "%#4.0-1e" > [2,] "12345.6" "12345.6" "12346"
2001 Jan 17
1
Scientific notation?
Hi, Would there be a function and/or some options to force R to write a value of say 1.0e-4 as "0.0001"? More specifically I want to use R to write ASCII file(s) for other programs to read and some of these programs don't know how to deal numbers in scientific notation or have a different convention. Thanks in advance. Yves Gauvreau B.E.F.P. Universit? du Qu?bec ? Montr?al cyg at
2003 Jan 31
1
Scientific Notation on tick marks
Hi, I was working on a project for my class and I am trying to make sure the y-axis numbers NEVER convert automatically to scientific notation. Is there anything I can set in the plot function to make sure of this? I know formatC( ) can be used in the axis function, but it seems to give me an error when using it in the plot function. Thanks, student-in-need-of-some-help
2006 Jan 24
1
No scientific notation in format
Hi I have a data.frame with the following numbers (first column are month numbers) 07,0,0,0,0.315444056314174,0,0,0,12.5827462764176,0.079194498691732, 0.0280828101707015,0,0.0695808222378877 08,0,0,105600,0.393061160316545,0,0,0,8.95551253153947,0.0880023174276553, 0.285714285714286,0,0.0669139911789158 09,0,0,0,0,12.5,0,0,13.5135887094281,0.0557531529154668,0,0, 0.0487526139182026
2006 Apr 28
1
displaying numbers not in scientific notation
Sorry for asking such a simple question, but I couldn't find the answer through a search... How can I get R to show me the values of estimates *not* in scientific notation? When I use summary() after using lm() I am getting numbers like 4.485107e-01, when what I want to see is 0.4485.... Thanks, Brian
2006 Oct 10
0
Fwd: read.table() and scientific notation
note: this e-mail is supposed to precede my coerce hack one. As an example of the other posters mentioning colClasses, with some debugging notes: # create a pretend file for this example > Lines <- scan(sep="\n", what="") a 1 3e-8 b 2 1e+10 c 3 e-10 d 4 e+3 > file <- textConnection(Lines) # import as you would a file, and specify the column types. > T
2008 Mar 22
1
how to scientific notation numbers
Hi, Sorry I have to bother you a question. I have a file with each line like this: 6.5500000000000000e+004 2.8235000000000001e+000 3.2000000000000000e+001 1.1580000000000000e+003 2.4400000000000000e+002 5.9800000000000000e+002 2.2700000000000000e+002 3.9030000000000001e+001 -1.2137000000000000e+002 However, I use read.table, it cannot read it correctly. It read in 18 variables instead of
2010 Aug 10
1
axis labels defaulting to scientific notation
The labels on the x-axis are defaulting to scientific notation no matter how small cex.axis is. How can I override scientific notation to get the labels to print out as specified? Here is the code (UNIT here is 0.0105): plot(xm,yv,log="xy",ylim=c(0.1,20)/UNIT,xlim=c(0.004,20)*UNIT,xaxt="n",t ype="n") axis(1,
2011 Mar 22
1
Rmark and scientific notation issue
Hi all, Just wondering if anyone might know a way to stop R reading my survival history that has zeros at the beginning in as scientific notation. The data is being read in from a .txt file via read.table to be used with Rmark I have the same issues at the moment with reading in .csv and .xls files. The number was formatted as text in the .xls file otherwise excel puts it into scientific notation
2011 Oct 14
1
is there an option to "turn off" scientific notation in write.csv
Dear Help-Rs,   I'm working with a file that contains large numbers and I need to export them "as is".  for example take:   x <- c(27104010002005,27104020001805,27104090001810,90050013000140,90050013000120) y <- c(1:5) df <- data.frame(cbind(x,y))   When I then try a simple: write.csv(df,file="df.csv")   I get:  x y 1 2.7104E+13 1 2 2.7104E+13 2 3 2.71041E+13 3
2012 Mar 20
1
scientific notation in a data frame
Dear list, I have a data frame where one of the columns are p values with scientific notation mixed with regular numbers with decimals. >a=data frame >a P OR N 0.50 0.7500 237 0.047 1.1030 237 0.124 0.7742 237 0.124 0.7742 237 0.0080 1.1590 237 0.50 0.7500 237 4.5e-07 1.2 237 5.6e-04 0.9 237 when I try to do >pval=a$P/2 R gives me an error saying "In Ops.factor(pval, 2)