similar to: rounding in calculation

Displaying 20 results from an estimated 8000 matches similar to: "rounding in calculation"

2016 Apr 05
2
Under Windows, Rgui and Rterm crash if one tries to close the graphic device while identify or locator are running
minimal reproducible example plot(1,1) identify(1,1) # or locator() now, trying to close the window by clicking on the cross of the upper right corner causes Rgui (and Rterm) to crash. I see the same behaviour on 2 different Windows PC (one with Win 8.1 and one with Win 10). I did not see the problem in linux (see below) WINDOWS ************** > sessionInfo() R version 3.3.0 beta
2016 Apr 05
2
Under Windows, Rgui and Rterm crash if one tries to close the graphic device while identify or locator are running
If of any help, I can reproduce this (on Windows 7) back to at least R 3.0.3 but it's not there in R 3.0.0. (I have *not* checked with R 3.0.1 and 3.0.2 which I don't have installed). /Henrik On Tue, Apr 5, 2016 at 8:23 AM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > Thanks, I'll track this down. > > Duncan Murdoch > > > On 05/04/2016 9:35 AM,
2012 Apr 20
1
error loading tcltk2
Hello, I just installed R-2.15.0 on windows XP and cannot load package tcltk2 (which I just downloaded from CRAN as tcltk2_1.2-1.zip; package install reported no problems): > library(tcltk2) Carico il pacchetto richiesto: tcltk Loading Tcl/Tk interface ... done Error : .onLoad failed in loadNamespace() for 'tcltk2', details: call: system("cat /etc/issue", intern = TRUE,
2020 May 18
1
parRapply and parCapply return a list in corner cases
According to ?parCapply: parRapply and parCapply always return a vector. This appears not to be the case in the following minimal reproducible example: > library(parallel) > nslaves <- 2 > cl <- makeCluster(nslaves) > X <- matrix(2,nrow=3,ncol=4) > X <- rbind(c(1,1,0,1),X) > tv <- parCapply(cl,X,FUN=function(x){ +
2012 Dec 29
1
bug in plot.ts?
Dear all, I think I have found a buglet in plot.ts plot.ts(x=1,type="n") # correct: does not show the plot plot.ts(x=1,y=1,type="n") # not correct: does show the plot I did not investigate the problem in depth but it could be related to the switch xy.labels, in fact plot.ts(x=1,y=1,type="n",xy.labels=TRUE) # does show the plot
2007 Oct 04
2
print Text on device
hi BioC, I need to plot a vector of characters on a pdf device, not as a legend, but as in image by itself. I tried text but it is only related to locate text in a plot. what do you suggest? > sessionInfo() R version 2.6.0 (2007-10-03) x86_64-unknown-linux-gnu locale:
2009 Mar 05
1
quantile(), IQR() and median() for factors
Dear all, from the help page of quantile: "x ??? numeric vectors whose sample quantiles are wanted. Missing values are ignored." from the help page of IQR: "x ??? a numeric vector." as a matter of facts it seems that both quantile() and IQR() do not check for the presence of a numeric input. See the following: set.seed(11) x <- rbinom(n=11,size=2,prob=.5) x <-
2023 Sep 23
2
NROW and NCOL on NULL
Dear list, I do not know what would be the 'correct' answer to the following but I think that they should return the same value to avoid potential problems and hard to debug errors. Regards, Simone --------------------------------------- > NCOL(NULL) [1] 1 > NROW(NULL) [1] 0 > sessionInfo() R version 4.3.1 RC (2023-06-08 r84523 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit)
2008 Sep 10
3
(PR#12770) format() under Windows giv wrong resuts with
On Windows XP SP3 > format(pippo, format="%I:%M:%S %p") [1] "11:43:12 PM" In any case, if there is a problem it is in Windows, not in R, since this is an Windows service that is being called. So there is no evidence at all of any bug in R here. On Wed, 10 Sep 2008, pego.enrico at tiscali.it wrote: > Full_Name: Enrico Pegoraro > Version: 2.7.2 > OS: Windows
2008 Jan 21
3
'matrix' returns integer instead of decimal
R-helpers: I am experiencing some odd behavior with the 'matrix' function that I have not experienced before and was wondering if there is something that I was missing in my code. --------------------------------- > sessionInfo() R version 2.6.1 (2007-11-26) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United
2016 Apr 05
0
Under Windows, Rgui and Rterm crash if one tries to close the graphic device while identify or locator are running
Thanks, I'll track this down. Duncan Murdoch On 05/04/2016 9:35 AM, Simone Giannerini wrote: > minimal reproducible example > > plot(1,1) > identify(1,1) # or locator() > > now, trying to close the window by clicking on the cross of the upper > right corner causes Rgui (and Rterm) to crash. > > I see the same behaviour on 2 different Windows PC (one with Win 8.1
2016 Apr 05
0
Under Windows, Rgui and Rterm crash if one tries to close the graphic device while identify or locator are running
On 05/04/2016 11:56 AM, Henrik Bengtsson wrote: > If of any help, > > I can reproduce this (on Windows 7) back to at least R 3.0.3 but it's > not there in R 3.0.0. (I have *not* checked with R 3.0.1 and 3.0.2 > which I don't have installed). That doesn't necessarily mean that 3.0.0 was fine. It's a segfault (I'd guess some memory being accessed after being
2010 Oct 03
1
tabulate() does not check for input bounds
Dear all, it looks like that tabulate() does not check for the bounds of the input. Reproducible example: > b <- 1:2 > tabulate(b[1:100]) [1] 1 1 > R.version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status Patched major 2 minor 11.1 year 2010 month 09 day
2008 Apr 07
0
Translating NLMIXED in nlme
Dear All, reading an article by Rodolphe Thiebaut and Helene Jacqmin-Gadda ("Mixed models for longitudinal left-censored repeated measures") I have found this program in SAS proc nlmixed data=TEST QTOL=1E-6; parms sigsq1=0.44 ro=0.09 sigsq2=0.07 sigsqe=0.18 alpha=3.08 beta=0.43; bounds $B!](B1< ro < 1, sigsq1 sigsq2 sigsqe >= 0; pi=2*arsin(1); mu=alpha+beta*TIME+a i+b i*TIME;
2007 Dec 27
2
Problem of lmer under FreeBSD
I encounter such problem with lmer under FreeBSD, but not under Windows. Anyone knows why? Thanks. > example(lmer) lmer> (fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy)) Error in UseMethod("as.logical") : no applicable method for "as.logical" > traceback() 9: as.logical(EMverbose) 8: as.logical(EMverbose) 7: lmerControl() 6:
2008 Feb 25
3
How to include the documentation of a function in a Sweave document?
Dear R-help, I would like to include the documentation of an R function in an *.rnw document processed by Sweave. Because I'm sharing my *.rnw files with colleagues under Linux and Windows (I'm on Mac OS X), I would like a pure R solution. The naive approach doesn't work, because Sweaving this *.rnw file: -------- tmp.rnw -------- \documentclass{article} \begin{document}
2008 Feb 18
2
Is rcompgen still recommended?
I just built R-devel from source on OS X (Tiger), using the subversion sources. Running ./tools/rsync-recommended didn't download rcompgen. I checked http://cran.r-project/src/contrib/2.7.0/Recommended and indeed, this package is not there. If I try to install using install.packages I get > install.packages("rcompgen", type="source") --- Please select a CRAN
2008 Jan 25
2
Using bquote: question
Hi all Observe: x <- c(1,2) y <- c(1,-1) phi <- 1 p <- 2 par( mfrow=c(1,2)) plot(x , y, main=bquote( paste( p==.(p)," and ",phi==.(phi)) ) ) plot(y ~ x, main=bquote( paste( p==.(p)," and ",phi==.(phi)) ) ) par( mfrow=c(1,2)) On my system (details below), the first plot is correct (in my understanding), and produces a title reading "p=2 and phi=1"
2008 Mar 27
1
snow, stopping cluster
Hello, is there any function in the package snow to check for a really running cluster? The function checkCluster only checks the variable cl. And the variable is still available after stopping the cluster! ( a simple solution would be deleting the cluster variable cl in the function stopCluster) > library(snow) > cl <- makeCluster(5) 5 slaves are spawned successfully. 0
2008 Feb 27
1
Bug in help(). (PR#10859)
There appears to be a bug in help() when there are multiple packages attached containing functions with the same name, and offline=TRUE. Example: library(mgcv) library(gam) If one simply does: help(gam) # No ``offline=TRUE'' then the following message appears: Help on topic 'gam' was found in the following packages: Package Library mgcv