similar to: logical operator and addition (PR#10665)

Displaying 20 results from an estimated 5000 matches similar to: "logical operator and addition (PR#10665)"

2008 Feb 19
3
Incorrect paste() output (PR#10801)
Hello, I am writing this message because of an incorrect output by paste(). Please try the following script to see if the evidence I collected is reproducible: x <- c(10152, 28177); y <- c(9576, 26625); d <- y - x; d; [1] -576 -1552 paste(d, collapse = ", "); [1] "-576, -1552" x <- x / 1000; y <- y / 1000; d <- y - x; d; [1] -0.576 -1.552 paste(d,
2011 Jul 15
1
Strange Behavior using FUSE client
I've recently setup a distributed/replicated cluster and have had an issue with seeing the directories on the cluster. Also, a df -h only shows data from one of the three bricks. The strange behavior doesn't end there. If I log into the 'primary' server as root, then do an ls on the client, the directories appear. However, df -h is still incorrect. I'm not sure exactly
2009 Jul 09
4
Compiling R-2.9.1 on Mac OS X 10.4
Hello, I am trying to compile R-2.9.1 on Mac OS-X 10.4 using --enable-R-shlib. I am not comfortable with Mac/Linux environments and trying to follow the instructions from CRAN site to every detail. The Mac OS did not have a gcc (gcc -version did not work). So I did the following: ## For gcc 4.2 and Fortran 4.2.4 Compilers Download gcc-4.2-5566-darwin8-all.tar.gz from
2009 Nov 27
2
layers in xYplot of Hmisc
In the "filled bands" part of xYplot of the Hmisc package, is there a way to have multiple bands with multiple lines? or does it just allow one for now? So I had an example bit ago had a made up line and CI, now if I wanted to make a second line with a CI filled in can I put them on the same plot? x<-seq(1,10,1) y<-seq(1,10,1) ci<-y*.10 ciupper<-y+ci
2012 Feb 17
4
[LLVMdev] llvm-gcc compilation and ConstantArray::getAsString
Hello there I'm trying to compile llvm-gcc, but the compilation fails. This is due to the fact that the ConstantArray class does no longer have the getAsString method. It has been actually removed on Jan 31 (commit 6a89228faca4b30c4abc29b5dec98bdac011ea4c). Is there a patch for llvm-gcc which overcomes this problem? I've just svn-updated my working copy but it didn't change
2012 Feb 02
4
The "less than" (<) operator doesnt seem to perform as expected
The example here puzzles me. It seems like the < operator doesn't work as expected. > l <- 0.6 > u <- seq(0.4, 0.7, 0.1) > u [1] 0.4 0.5 0.6 0.7 > mygrid <- expand.grid("l" = l, "u" = u) > mygrid l u 1 0.6 0.4 2 0.6 0.5 3 0.6 0.6 4 0.6 0.7 > mygridcollapsed <- mygrid[mygrid$l < mygrid$u, ] > mygridcollapsed l u 3 0.6 0.6 4
2008 Oct 06
2
match() (PR#13135)
Full_Name: Willa Chen Version: 2.7.2 OS: Window XP Submission from: (NULL) (128.122.182.70) The match function does not return value properly. See an example below. > a<-seq(0.6,1,by=0.01) > match(0.88,a) [1] 29 > match(0.89,a) [1] NA > match(0.90,a) [1] NA > match(0.91,a) [1] NA > match(0.92,a) [1] NA > match(0.93,a) [1] NA > match(0.94,a) [1] 35
2001 Oct 11
1
unary "-" on logicals
"An Introduction to R" says that arithmetic operators coerce logical vectors to numeric vectors. This doesn't seem to be true for unary "-" however: > x <- 1:10 > p1 <- (x > 5) > p2 <- (-p1) > is.logical(p2) [1] TRUE > is.numeric(p2) [1] FALSE Since "==" always does binary comparison, this can lead to some bizarre behavior: > p1
2000 Dec 20
3
glm
It was my fault, as you have seen. Y matrix must contain successes and failures, and not successes and trials. Sorry for my ignorance and thanks a lot for your help. Oscar -------------- next part -------------- An HTML attachment was scrubbed... URL: https://stat.ethz.ch/pipermail/r-help/attachments/20001220/341c2519/attachment.html
2012 Feb 11
1
[LLVMdev] Hello + Noobish question
Hi everyone! I recently subscribed your mailing list, as I find the LLVM project interesting. I've read the document known as "Compiler hacker's introduction to LLV"[1], and I've learnt about LLVM-IR. I was wondering about the impact of such a representation on mixing code from different languages. Suppose we have a huge library X written in language LX, which we would be
2003 Sep 18
2
R-1.7.1 package installation problem
Hi there, I am a bioinformatician working in DFCI. I am new to R. Yesterday I installed the R-1.7.1 to my Linux (since I am not able to find R-1.8 on the webpage). But I have some package installation problems ... 1. install.packages2() function isn't available. If I type at R prompt: >install.packages2("Biobase") Error: couldn't find function
2001 Jan 10
2
nearest neighbors
Is there an implementation of a reasonable k-nearest neighbor finder already in one of the packages? -- +---------------------------------------------------------------------------+ | Robert Gentleman phone : (617) 632-5250 | | Associate Professor fax: (617) 632-2444 | | Department of Biostatistics office: not yet
2006 Dec 29
3
strange logical results
Dear R People: I am getting some odd results when using logical operators: > x <- seq(from=-1,to=1,by=0.1) > > x [1] -1.0 -0.9 -0.8 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0.0 0.1 0.2 0.3 0.4 [16] 0.5 0.6 0.7 0.8 0.9 1.0 > x == -1 [1] TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE [13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE > x
2001 May 30
2
new book
Just thought I would mention that there is a new O'Reilly book out, "Developing Bioinformatics Computer Skills", which is ok, pretty superficial about some things but at least it lets you know what is happening and where. R gets a few pages in there, 394-396, mostly nice press and accurate except that Bill Venables (hi Bill) may be surprised to find out that he is a member of the
2002 Mar 18
3
function design
I have a, no doubt, simple question. I wish to write a function such that a <- 9 b <- 10 changer _ function(x,y) { if (y>x){ x <<- Y+1}} Of course there are easier ways to accomplish the task above, but I am more interested in how to have the "x <<- Y+1" part of the function to change x in place for purposes of a much larger function. I have been wrestling with
2007 Feb 20
1
Difficulties with dataframe filter using elements from an array created using a for loop or seq()
Hi All- This seems like such a pathetic problem to be posting about, but I have no idea why this testcase does not work. I have tried this using R 2.4.1, 2.4.0, 2.3.0, and 2.0.0 on several different computers (Mac OS 10.4.8, Windows XP, Linux). Below the signature, you will find my test case R code. My point in this folly is to take a dataframe of 300,000 rows, create a filter based on two
2000 Dec 05
1
print buglet with small options(width = ) (PR#759)
This is in R 1.1.1 and "R-devel" : > options(width = 10) ; pi [1] [1] 3.141593 Note the extra "[1]". -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject
2003 May 23
2
RGui Startup Error on Win2000 (PR#3084)
Full_Name: Girish Zambre Version: 1.7.0 OS: Win2000 Submission from: (NULL) (66.7.170.2) I just started looking at and trying R. The problem could be external to R, but I really don't know. It reads 'The instruction at "0x004412f0" referenced memory a "0x0095e40c". the memory could not be "read" ' I get this after installing modules
2001 Nov 22
1
p-value using survdiff
Dear all, Does anyone knows how I could extract the p-value in: > survdiff(Surv(tempo,status) ~ grupo,data=dados1,rho=1) Call: survdiff(formula = Surv(tempo, status) ~ grupo, data = dados1, rho = 1) N Observed Expected (O-E)^2/E (O-E)^2/V grupo=1 21 5.12 12.00 3.94 14.5 grupo=2 21 14.55 7.68 6.16 14.5 Chisq= 14.5 on 1 degrees of freedom,
2002 Dec 18
2
gene ontology association
Hello! I don't know if there is some R-package able to associate ontology to a long list of GeneBank Name (a txt-tab file or an XML file), i.e. I would as output a formatted file with 4 columns (1:GeneBank Name 2,3,4:ontology). I know that I have to perform a mapping of genes, I got a look on AnnBuilder pkg, but I 've not idea from where to start. Some suggestion? Thanks in advance!