[R] Problem Subsetting Rows that Have NA's

2017-10-24 Thread BooBoo
This has every appearance of being a bug. If it is not a bug, can someone tell me what I am asking for when I ask for "x[x[,2]==0,]". Thanks. > #here is the toy dataset > x <- rbind(c(1,1),c(2,2),c(3,3),c(4,0),c(5,0),c(6,NA), + c(7,NA),c(8,NA),c(9,NA),c(10,NA) + ) > x [,1] [,2] [1,]

Re: [R] Problem Subsetting Rows that Have NA's

2017-10-25 Thread BooBoo
On 10/25/2017 4:38 AM, Ista Zahn wrote: On Tue, Oct 24, 2017 at 3:05 PM, BooBoo wrote: This has every appearance of being a bug. If it is not a bug, can someone tell me what I am asking for when I ask for "x[x[,2]==0,]". Thanks. You are asking for elements of x where the second

Re: [R] R 2.9.0 MASS package

2009-04-20 Thread BooBoo
I learned something good today (MASS is in R by default). Thanks. Tom Peter Dalgaard wrote: Tom La Bone wrote: In Windows Xp Pro: R2.8.1 USA(CA1) repository markerSearchPower MASS(VR) MasterBayes R2.9.0 USA(CA1) repository markerSearchPower MasterBayes MASS is not where it used to be. I

Re: [R] Extracting Coefficients and Such from mle2 Output

2009-02-01 Thread BooBoo
I had asked this question once before about a function in the NADA package, and you provided this neat response: [Begin quote] An approach that may yield somewhat more self-documenting code would be to examine either the fit object or the summary object with str and then to access results by

[R] moving color key in heatmap

2009-08-18 Thread Booboo Qu
Dear list, I have a question on moving color keys when side color bars are added to a heatmap. The R code below produces the color key in the upper left corner. Notice I have added side bars to the heatmap, but how could I move the color key below the image? -- library(gplots) data(mtcar