search for: scipen

Displaying 20 results from an estimated 99 matches for "scipen".

2003 May 02
2
Suppressing Scientific Notation
..."normal" printing and *m is the number of characters for scientific notation. If mf <= *m, then parameters are set that cause "normal" printing. My idea was to introduce a "penalty" for scientific notation, which changes line 286 to: if (mF <= *m + R_print.scipen) { R_print.scipen is an integer (defaulting to 0) set with "options": R> options(scipen=99) I tried to copy the code for R_print.digits (as in "options(digits=7)") wherever I found it, notably in the struct "R_print_par_t" defined in Print.h. I changed main/opti...
2018 Oct 08
2
bug with OutDec option and deferred_string altrep object
...ity in the TERR engine, I discovered a bug in R's 'deferred_string' altrep object: it is not using the correct value of the 'OutDec' option when it expands a deferred_string. See the following example: R 3.5.1: (same results in R 3.6.0 devel engine built 10/5) > options(scipen=0, OutDec=".") > as.character(123.456) [1] "123.456" > options(scipen=-5, OutDec=",") > as.character(123.456) [1] "1,23456e+02" > xx <- as.character(123.456) > options(scipen=0, OutDec=".") > xx...
2010 Feb 02
1
[R] Suppressing scientific notation on plot axis tick labels (PR#14202)
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 ???scipen??? digits >> wider. > > However, > > options(scipen = 50) > x = c(1e7, 2e7) > barplot(x) > > still does not produce the desired result. This is strange. I see wha...
2018 Oct 09
0
bug with OutDec option and deferred_string altrep object
...discovered a bug in R's 'deferred_string' altrep object: it is not > using the correct value of the 'OutDec' option when it expands a > deferred_string.? See the following example: > > R 3.5.1: (same results in R 3.6.0 devel engine built 10/5) > ? ? > options(scipen=0, OutDec=".") > ? ? > as.character(123.456) > ? ? [1] "123.456" > ? ? > options(scipen=-5, OutDec=",") > ? ? > as.character(123.456) > ? ? [1] "1,23456e+02" > ? ? > xx <- as.character(123.456) > ? ? > options(scipen=0,...
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 c(1e7, 2e7) >> barplot(x)=20 >>...
2004 Jul 12
3
Segfault with options() (PR#7078)
This is completely undocumented use of options, but it does cause a segfault with r-patched and r-devel on Linux: options(list('digits', 'scipen')) Strangely enough, options(list('digits')) and options(list(digits = 10, scipen = 2)) work as might be expected. Deepayan
2004 Jan 01
4
force fixed format
Hello, A small problem I can't solve > p <- 0.0001 > p [1] 1e-04 How can I force the printout of p to 0.0001? I have tried 'format', 'round', 'signif', 'print' in different combinations without success. Fredrik Lundgren
2011 Nov 15
2
Controlling the precision of the digits printed
...> a <- c(1e-10,1,2,3,.5,.25) > names(a) <- c("A", "B", "C", "D", "E", "F") > # default > a A B C D E F 1.0e-10 1.0e+00 2.0e+00 3.0e+00 5.0e-01 2.5e-01 > options(digits = 4, scipen=5) > # Doesn't print exponents but there are too many trailing digits > a A B C D E F 0.0000000001 1.0000000000 2.0000000000 3.0000000000 0.5000000000 0.2500000000 > options(digits = 3, scipen=4) > # Now we are back t...
2009 Aug 17
4
number in R
Hi, i export data from an csv file like this :  Data <- read.csv2("c:/Art.csv",sep=",") # import data into R > Data <- Data [1:5,1:5]# extracting the first 5 rows and columns > Data   Policy.Number AXA.Entity Country LoB ccy.data 1         6e+13        BNL     BNL   P      EUR 2         6e+13        USA     BNL   P      EUR 3         6e+13         UK     BNL  
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:
2010 Jul 28
1
Reading timestamp column from MySQL
Hi, I am reading a SQL (MySQL) table in R data frame. When I read in the table that has a timestamp data-type field, R gives it the following format:- 1.236887e+12 So when I want to manipulate a column with timestamp = 1236887146615 It returns me multiple rows, as many timestamps gets converted to same value: 1.236887e+12 Any ideas of how this could be dealt with, so that I can get the
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,
2005 Nov 15
3
Darstellung mit Nachkommastellen
Hi! I got a rather stupid question (I think): Is there ANY option that makes R display numericals not like "1e-8" but as "0.00000001" by default ? And I need the outcome to be really numerical, so formatC(...) which produces a character or something like this won't be acceptable. Any help on this would be appreciated, thanx. Marc
2009 Aug 19
1
Fw: Hist & kernel density estimates
For the hist estimate >par(mex=1.3) >dens<-density(q) >options(scipen=4) > ylim<-range(dens$y) > h<-hist(q,breaks="scott",freq=FALSE,probability=TRUE, +? right=FALSE,xlim=c(9000,16000),ylim=ylim,main="Histogram of q(scott)") > lines(dens) >box() ? For the kernel estimate>options(scipen=4) > d <- density(q, bw = "nrd...
2009 Apr 23
3
Running Edit() or Fix() on Linux Machine
Hi all, As I am new to using R on a Linux machine I have another question if that's ok. I am trying to use the fix() or edit() function on this Linux machine but I get the following error message: Error in dataentry(datalist, modes) : invalid device In addition: Warning message: In edit.data.frame(get(subx,envir=parent),title = subx, ...) : Unable to create fontset
2009 Dec 15
1
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...
2012 Feb 16
2
help with e+01 number abbreviations
Dear List, I will appreciate any advice regarding how to convert the following numbers [I got in return by taxondive()] in numeric integers without the e.g. 6.4836e+01 abbreviations. Thank you very much in advance, Gian > taxa_dive Species Delta Delta* Lambda+ Delta+ S Delta+ Nat1 5.0000e+00 6.4836e+01 9.5412e+01 6.7753e+02 8.7398e+01 436.99 Nat2
2009 Feb 07
3
Output results to a single postscript document
...lots, etc) into the same postscript file as one document, but have been unable to...Can anyone help me improve my code below so that I can accomplish this? Currently I have to output them separately then piece them back together into one document.. Thanks in Advance for any help! options (scipen=999, digits=7) library(foreign) library(Hmisc) library(prettyR) library(DAAG) library(lmtest) library(car) library(MASS) library(nlme) library(dyn) library(wle) library(lasso2) library(zoo) tdata <- ts(read.table("C:/tmp/data.csv" ,sep = ",",header=TRUE)) print(tdata)...
2003 Oct 14
3
Number Format
Hi A very simple question on number formats. After some calculations, some variables I have come out looking like this: -1.892972e+00 Now apart from the fact that the "e+00" is completely redundant, I would rather have the number represented without the e bit. I want to export data like this to a text file and would rather have: -1.892972 than -1.892972e+00 I have tried
2006 Feb 09
2
write.table
Hello! When using the command "write.table" I want to convert the format: 5e-04 to .0005. How can I do it? The only option I found is to use write.matrix but then I cant add rownames. Thank you Ronen [[alternative HTML version deleted]]