similar to: Format with n significant figures / digits

Displaying 20 results from an estimated 90 matches similar to: "Format with n significant figures / digits"

2009 Mar 31
2
"digits" in round()
Hi Folks, Compare print(1234567890,digits=4) # [1] 1.235e+09 print(1234567890,digits=5) # [1] 1234567890 Granted that digits: a non-null value for 'digits' specifies the minimum number of significant digits to be printed in values. how does R decide to switch from the "1.235e+09" (rounded to 4 digits, i.e. the minumum, in "e" notation) to
2008 Jun 02
6
significant digits (PR#9682)
I came to report this same bug and found it already in the trash, but I slightly disagree with that assessment. If it's not a bug, then perhaps it's a feature request. Comments at the end. On Mon, May 14, 2007, Duncan Murdoch wrote: >>On 13/05/2007 8:46 PM, scott.wilkinson at csiro.au wrote: >> >> In the example below round() does not report to the specified number of
2017 Jul 28
3
problem with "unique" function
I have the joint distribution of three discrete random variables z1, z2 and z3 which is captured by "z" and "prob" as described below. For example, the probability for z1=0.46667, z2=-1 and z3=-1 is 2.752e-13. Also, the probability adds up to 1. > head(z) z1 z2 z3 [1,] -0.46667 -1.0000 -1.0000 [2,] -0.33333 -0.9333 -0.9333 [3,] -0.20000 -0.8667 -0.8667
2017 Jul 28
0
problem with "unique" function
Most likely, previous computations have ended up giving slightly different values of say 0.13333. A pragmatic way out is to round to, say, 5 digits before applying unique. In this particular case, it seems like all numbers are multiples of 1/30, so another idea could be to multiply by 30, round, and divide by 30. -pd > On 28 Jul 2017, at 17:17 , li li <hannah.hlx at gmail.com> wrote:
2006 Apr 24
2
CallerID/variable setting.
Hey, all. I'm trying to set my CID such that, internally, I see a four-digit extension (which is also handy when checking VM), but externally, I see the full 10-digit number. So I plugged these lines into my extensions.conf: exten => _XXXXXXX,1,GotoIf($[ ${CALLERIDNUM} != 1625]?4:2) exten => _XXXXXXX,2,Set(CALLERIDNUM=6031234${CALLERIDNUM:1}) exten =>
2008 Feb 26
2
Subsetting within xyplot()
All, I'm having problems w/ a simple attempt to subset an xyplot. The first plot below is a plot of y versus x for certain values of a third categorical variable z. Now I'd like to further restrict this to certain values of variable y. Neither of the two attempts below work. Any suggestions much appreciated. (note: I don't want to merely use ylim since I have a loess plot and I
2008 Feb 28
2
Replacing plot symbols w/ subject IDs in xyplot()
All, How does one replace plot symbols with say subject IDs when using xyplot? Or superimpose them next to plot symbols? I searched the archives under various key words but haven't had much. Any suggestions or links much appreciated. Sample code below. David junk.frm = data.frame(ID = rep(1:16, each = 2), x, y, z = rep(c("D", "P"), 16)) y = c( 0.4, 0.6, -0.1,
2009 Apr 10
1
png with ggplot on windows xp
Hi Group, I posted this question on the ggplot list and was advised to try here also. The code below produces a plot as a png and pdf. The pdf looks great, and I cannot make the png look this way. I've tried various combinations of height, width, and dpi, but it has not worked out so far. Any suggestions to make the png look like the pdf? I received a response that the problem does not occur
2005 Oct 07
1
Echo cancel on HFC-S cards and CIDNum setting on outgoing calls
hi all! I'm running an Asterisk-box with bristuff-....RC8n and 2 HFC-S cards. I m located in Vienna/Austria. I have the problem that on outgoing calls i hear my voice as a short echo (about half a second). This occurs not on every call. I tried some changes in my zapata.conf, with rxgain and txgain settings, but to me its hard to find a configuration which is good for every call i make. Is
2011 Sep 26
0
vegan cca: syntax
Dear all, I am a new member to the list - and to the analysis that I am attempting. I have the following case A group of us have been monitoring (over a period of a few years) a number of paired plots that were flooded and / or burnt. The plots are located in two topographical settings, some were burnt, some were flooded, some were burnt & flooded and some were not affected at all. At
2012 Oct 16
0
Free space cache writeback issue
Hi, I''ve hit an issue with the free space cache. It looks like we miss writing everything to disk on unmount under rough conditions. Setup: git head cmason/master, /dev/sdv1 is a 55MB partition on an SSD. Run the following script: -- DEV=/dev/sdv1 MP=/mnt/scratch umount $MP mkfs.btrfs -M $DEV mount -o inode_cache $DEV $MP cat /dev/urandom | head -c 654321 > $MP/1 mkdir $MP/2 mv
2010 Sep 26
4
How to update an old unsupported package
Hi all, I have a package that is specific to a task I was repetitively using a few years ago. I now needed to run it again with new data. However I am told it was built with an older version or R and will not work. How can I tweak the package so it will run on 11.1? It was a one-off product and has not been maintained. Is there a way to "unpackage" it and repackage it to work? I
1999 Feb 28
0
Formatting in formatC and format (PR#129)
[This turned into a bug report which will go to r-devel, so I have taken it off r-help.] Bugs reported here: (1) formatC's help page need some clarification. (2) formatC needs to treat modes "double" and "real" as equivalent. (3) format's help page or (preferably) format needs correction re the meaning of `digits' On Sun, 28 Feb 1999, Martin Maechler wrote:
2008 Mar 04
1
(x,y) coordinates for grid.text()
All, When using grid.text it seems my supplied (x,y) coordinates are being plotted only in npc (normalized parent coordinates) where (.5,.5) is the center of the graph. How do I allow (x,y) to be coordinates corresponding to the (x,y) values in the graph? The examples in ?grid.text seem to do this. (I think the problem lies in how x and y are defined with respect to unit ). Any help much
2007 Aug 28
0
help with aggregate(): tables of means for terms in an mlm
I'm trying to extend some work in the car and heplots packages that requires getting a table of multivariate means for one (or later, more) terms in an mlm object. I can do this for concrete examples, using aggregate(), but can't figure out how to generalize it. I want to return a result that has the factor-level combinations as rownames, and the means as the body of the table
2006 Aug 04
1
polychoric correlation error
Dear all, I get a strange error when I find polychoric correlations with the ML method, which I have been able to reproduce using randomly-generated data. What is wrong? I realize that the data that I generated randomly is a bit strange, but it is the only way that I duplicate the error message. > n<-100 > test.x<-rnorm(n, mean=0, sd=1) > test.c<-test.x + rnorm(n, mean=0,
2002 Aug 05
2
options(digits) (PR#1879)
[this message needed manual improvement by the mailing list administrator since it was `HTMLified' .. ``please do not''] Apologies for bothering you about a fairly trivial matter. I have been getting some inconsistencies with the display digits in R V1.5. I have been using the hypergeometric distribution function, and have found that when printing out the results from this
2010 Jul 30
3
Using R for Multiple Regression
Hi, Subject: Using R for Multiple Regression I am new to statistic but am interested in applying mathematical models to solve biological problems. I have used a linear model to generate the test data. When using this data I expect R to correctly identify the model but that does not seem to be the case. I am certain that I am doing something wrong but not able to figure it out. Model: Y = m1x1 +
2015 May 08
3
pregunta
Estimados Al dirigir la lectura de un folder tYA1.csv me da este error y no me percato del motivo, adjunto archivo. Espero su ayuda Saludos Jos? > setwd("D:/Public/Documents/R/bioimpedancia") > a<-read.csv("tYA1.csv",header=TRUE, sep=",", dec=".") Error in read.table(file = file, header = header, sep = sep, quote = quote, : more
2000 Jun 05
1
apply'ing cut to a data.set column
Hi all, there is probably something I'm still missing about how R manipulates multivariate data. I have a dataset in which, for various tuples of a set of 4 parameters, a value of interest is stored: p1 p2 p3 p4 v 0 0 0 0 0.2342 0 1 1 0 0.6124 .... 0 0 1 1 0.1234 What I would like to do is to "cut" the