Displaying 20 results from an estimated 8000 matches similar to: "sd(NA)"
2007 Mar 06
2
SVG and tooltips, hyperlinks
Dear all,
is there a good way to create SVG plots with R whose elements have
titles (tooltips) or act as hyperlinks?
I am using the RSvgDevice package, which works great - but it doesn't
seem to support the notion that plot objects have titles or are act as
hyperlinks, so I am helping myself by giving the objects funny unique
colors and then postprocessing the .svg file.
I wonder
2010 Jan 16
1
"Too many raster images" in devPS.c
Hi,
I am finding the recently added [1] functionality of embedding raster
images into plots on R devices very useful! Thanks to Paul Murrell and
others for providing that. I noted that in
https://svn.r-project.org/R/trunk/src/library/grDevices/src/devPS.c
a macro is defined: #define MAX_RASTERS 64, and consequently, I get
Error in grid.Call.graphics("L_raster", x$raster, x$x, x$y,
2009 Feb 25
1
Unexpected side effect of the ":::" operator on the value of isGeneric
Hi,
when running the following on a fresh R,
library("IRanges")
annotation
showMethods("annotation")
Biobase:::annotation
showMethods("annotation")
I get (see the "^^^^^" marked output at the bottom):
> library("IRanges")
Carico il pacchetto richiesto: 'IRanges'
The following object(s) are masked from package:base :
2007 Jan 15
0
Advanced course R programming and Bioconductor in Cambridge UK 30.3.+1.4.
Dear R users & developers,
Seth Falcon and Martin Morgan are teaching
Advanced R Programming and Bioconductor 30 March - 1 April 2007 at the
Wellcome Trust Genome Campus, Hinxton, Cambridge, UK.
This two-day course focuses on programming skills required to develop
software for statistical analysis of high-throughput genomic data using
R and Bioconductor. Lectures and practical sessions
2007 Jan 28
0
"[", .local and S4 methods (was: "[" operator and indexing ambiguity)
Dear Tony,
thanks for the tip with "nargs", when suitably applied, this answers the
problem.
The behaviour of "nargs" in S4 methods has some subtleties compared to
that in normal functions, as shown in the example below. I admit that
this is what had earlier created some confusion about the semantics of
"nargs". From the perspective of "nargs" and its
2003 Jan 29
3
na.rm in sd()
Hello, I think this qualify as a bug
> x<-c(1,2,3,4,NA,6,7)
> mean(x)
[1] NA
> mean(x,na.rm=T)
[1] 3.833333
> sd(x)
Error in var(as.vector(x)) : missing observations in cov/cor
> sd(x,na.rm=T)
Error in sd(x, na.rm = T) : unused argument(s) (na.rm ...)
> var(x)
Error in var(x) : missing observations in cov/cor
> var(x,na.rm=T)
[1] 5.366667
>
why sd() does not
2006 Jul 10
1
Unexpected difference in Bounding Box of PDF graphics between (PR#9072)
huber at ebi.ac.uk wrote:
> Full_Name: Wolfgang Huber
> Version: R version 2.4.0 Under development (unstable) (2006-07-09 r38523)
> OS: i686-pc-linux-gnu
> Submission from: (NULL) (62.253.128.15)
>
>
> There appears to be unintentional behaviour in the size of the bounding box for
> PDF graphics produced with the current R2.4, compared to 2.3.1. I posted two PDF
>
2005 Oct 31
3
Still a bug with NA in sd() or var()?
Dear R-users,
Running R 2.1.1 in WindowsXP, there seems to be a 'bug' in sd()
If
>x<-c(1,2,3,NA,5)
>mean(x)
[1] NA
But
>sd(x)
Or
>var(x)
give
Error in var(x, na.rm = na.rm) : missing observations in cov/cor
There are obvious work-rounds, like
>sd(x, is.na(x)==F)
which gives the result (with error message)
[1] 1.707825
Warning message:
the condition has length > 1
2008 May 16
1
var/sd and NAs in R2.7.0
Hello all,
I just upgraded to R 2.7.0 and found that the behavior of 'var' and 'sd'
have changed in the presence NAs (this wasn't explicit in the NEWS file,
though I see it probably has to do with the change for cor/cov). Anyway,
I just want to make sure that it was intentional to produce an error
when there was all NAs and na.rm=TRUE, rather than returning an NA (like
R
2008 Sep 05
2
typo in cov()? var() fails on NA in R 2.7.2 but not R 2.6.1
I recently started using R 2.7.2, and noticed a surprising change in
the behavior of var() on NA data:
R 2.6.1 (Patched), 2007-11-26, svn.rev 43541, x86_64-unknown-linux-gnu:
> stdev(rep(NA,3), na.rm=F)
[1] NA
> stdev(rep(NA,3), na.rm=T)
[1] NA
> var(rep(NA,3), na.rm=T, use="complete.obs")
[1] NA
R 2.7.2 (Patched), 2008-09-02, svn.rev 46491,
2018 Sep 20
2
A different error in sample()
FWIW, I suspect this is related to the function R_unif_index that was
introduced in src/main/RNG.c around revision 72356, or the way this
function is used in do_sample in src/main/random.c.
20.9.18 08:19, Wolfgang Huber scripsit:
> Besides wording of the documentation re truncating vs rounding, there is
> something peculiar going on with the fractional part of n:
>
> >
2018 Sep 20
0
A different error in sample()
Besides wording of the documentation re truncating vs rounding, there
is something peculiar going on with the fractional part of n:
> table(sample.int(2.5, 1e6, replace = TRUE))
1 2 3
399051 401035 199914
> table(sample.int(3, 1e6, replace = TRUE))
1 2 3
332956 332561 334483
> table(sample.int(2.01, 1e6, replace = TRUE))
1 2 3
2008 Jul 29
1
Bug in sd() and var() in handling vectors of NA (R version 2.7.1)?
In the previous versions of R (2.6.1), when a vector of NA was given to the functions 'sd' or 'var' with parameter na.rm = TRUE, it used to return NA. Now (2.7.1) it returns an ERROR :
Example in 2.6.1:
> sd(c(NA, NA, NA, NA), na.rm = TRUE)
[1] NA
Example in 2.7.1:
> sd(c(NA, NA, NA, NA), na.rm = TRUE)
Error in var(x, na.rm = na.rm) : paires d'éléments
2006 Jun 26
0
(PR#9035) apparent problem in how PDF evaluates its arguments
It was already in the process of being changed, hence the first seven
lines of the function. That lapply is no longer needed and has been
removed (but was not yet committed).
We do normally ask that problems with R-devel ('Under development
(unstable)') not be sent to R-bugs: as is quite often the case this is
something that is under active development.
On Mon, 26 Jun 2006, Peter
2016 Apr 11
0
R not responding (must force quit) when saving graphic to PDF (bug?)
Dear Neil
Have you tried with completely uninstalling your R, and reinstalling a more recent version (e.g. 3.2.4 right now).
And then the same with your operating system - OS X is currently at 10.11.4.
There is likely not much interest (or benefit) in chasing such things in obsolete versions.
And I think R-help would be the more appropriate place for this kind of question.
Wolfgang
> On Apr
2007 Jun 18
1
the way to look at all the codings of any functions
Dear SIr,
In case of looking at the codes of the fuction, "cov",
we find all the codings below. But, incase of "mean", we don't find
the contents.
Please show me the way to look at all the codings of any functions.
Best regards,
Kei
-----------------------
> cov
function (x, y = NULL, use = "all.obs", method = c("pearson",
2016 Apr 11
1
R not responding (must force quit) when saving graphic to PDF (bug?)
Dear Wolfgang,
Thanks for your response.
No, I haven't tried doing the complete reinstallation as you suggest. If I
recall correctly, this has happened on previous occasions but like I said
in my email it's not all that disruptive to my workflow. It's more like a
'first world problem'.
I was encouraged to submit the query because I had correspondence with
someone involved
2009 May 26
2
(OT) Does pearson correlation assume bivariate normality of the data?
Dear all,
The other day I was reading this post [1] that slightly surprised me:
"To reject the null of no correlation, an hypothsis test based on the
normal distribution. If normality is not the base assumption your
working from then p-values, significance tests and conf. intervals
dont mean much (the value of the coefficient is not reliable) " (BOB
SAMOHYL).
To me this implied that in
2008 Apr 29
2
reproducible segmentation fault caused by textConnection()
Dear all,
It seems that textConnection() can trigger a segmentation fault. The
following script (using two large loops) makes this bug reproducible:
for (i in 1:10000) {
z=textConnection(NULL,open='w')
for (j in 1:100) {
write(runif(1)*1e6,file=z)
write('\n',file=z)
}
close(z)
}
The bug could be reproduced on R-2.6.1, R-2.7.0 and on the latest
R-devel
2003 Jul 15
2
"na.action" parameter in princomp() (PR#3481)
Full_Name: Jerome Asselin
Version: 1.7.1
OS: Red Hat Linux 7.2
Submission from: (NULL) (24.77.125.119)
Setting the parameter na.action=na.omit should remove
incomplete records in princomp. However this does not
seem to work as expected. See example below.
Sincerely,
Jerome Asselin
data(USArrests)
princomp(USArrests, cor = TRUE) #THIS WORKS
USArrests[1,3] <- NA
princomp(USArrests, cor =