similar to: Darstellung mit Nachkommastellen

Displaying 20 results from an estimated 1000 matches similar to: "Darstellung mit Nachkommastellen"

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
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
2008 Sep 26
6
Return a list
Dear R Users, another problem for me is the output of a function. I have several output variables which I give back with the list command. test <- function {return(list(a,b,c,d,e,f,g,...))} After the usage of the function I want to assign the variables to the output variables. result <- test() a <- result$a b <- result$b c <- result$c d <- result$d ... is there a more
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
2009 Nov 11
1
thousands separator in console output?
Hello, I'm beginning with R and I'm wondering if there's any way to display large values (e.g. 161651654167) using my system's thousands separator or scientific notation. Thanks! [[alternative HTML version deleted]]
2019 Mar 21
3
prettyNum digits=0 not compatible with scientific notation
R developers, Seems I get a bad result ("%#4.0-1e" in particular) when trying to use prettyNum digits=0 with scientific notation. I tried on both my Linux box and on an online R evaluator and saw the same problem, so it's not limited to my box at least. I see the problem in both R 3.5.3 and R 3.3.2. options(scipen=-100) prettyNum(1, digits=0) [1] "%#4.0-1e" prettyNum(2,
2008 Sep 25
2
Exclusion of elements in a vector
Dear R Users, I want to exclude elements in a vector by: vector[-exclude] is it intended to cause an error if no elements are excluded? > vector <- 1:10 > exclude <- NULL > vector[-exclude] Error in -exclude or am I just definig exclude wrong, if no elements should be excluded? with kind regards, Stefan Fritsch
2003 May 02
2
Suppressing Scientific Notation
R gurus, Every so often(*) someone asks how to suppress scientific notation in printing, so I thought I'd give it a shot, but I need some help. The formatting decision is made(**) on line 286 of src/main/format.c : if (mF <= *m) { /* IFF it needs less space : "F" (Fixpoint) format */ where mF is the number of characters for "normal" printing and *m is the number
2018 Oct 08
2
bug with OutDec option and deferred_string altrep object
While implementing R's new 'altrep' functionality 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=".") >
2007 May 03
2
Truncating trailing digits
Hello, I am relatively new to R and have a rudimentary question, I think. How does one truncate the number of digits displayed after the decimal when viewing the results of analyses? My apologies if this question has been answered previously, I was not able to find references very easily. Thank you in advance, Matt [[alternative HTML version deleted]]
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 what
2005 Apr 14
2
Printing integers in R "as is"
Hi, I am using the following command to print to a file (I omitted the file details): cat( paste( paste(orientation, start, end, names,"\n"), paste(start, end, "exon\n"), sep="")) where "orientation" and "names" are character vectors and "start" and "end" are integer vectors. The problem is that R coerce the integer vectors
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
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 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 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 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,
2003 Dec 09
2
Erratic DTMF on E1/PRI (continuation of Strage bip on ISDN/PRI)
At the same site, DTMF recognition is functioning badly, sometimes duplicating digits and sometimes totally missing others. We have checked already /proc/interrups, there is no interrupt being shared. Our zaptel has .. span=1,1,0,ccs,hdb3 On zapata we have ... switchtype=euroisdn signalling=pri_cpe relaxdtmf=no (yes doesn't seem to help) -----Original Message----- From:
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
2011 Nov 15
2
Controlling the precision of the digits printed
Has anyone come across the right combinations to print a limited number of digits? My trial and error approach is taking too much time. Here is what I have tried: > op <- options() > a <- c(1e-10,1,2,3,.5,.25) > names(a) <- c("A", "B", "C", "D", "E", "F") > # default > a A B C D