Re: [R] Error: missing value where TRUE/FALSE needed

2016-06-09 Thread Fox, John
FALSE > is.na(TRUE && TRUE && NA) [1] TRUE I hope that this helps, John - John Fox, Professor McMaster University Hamilton, Ontario Canada L8S 4M4 Web: socserv.mcmaster.ca/jfox > -Original Message- > From: R-help [mailto:r-help-boun...@r-

Re: [R] Error: missing value where TRUE/FALSE needed

2016-06-09 Thread Ulrik Stervbo
Dear Shashi, I don't see any code, but I will take a guess anyway: The error tells you that you try to compare a boolean with something that is not (TRUE or FALSE cannot be compared to NA). HTH Ulrik On Thu, 9 Jun 2016 at 08:55 SHASHI SETH wrote: > Hi, > > > > I am

[R] Error: missing value where TRUE/FALSE needed

2016-06-09 Thread SHASHI SETH
Hi, I am getting the following error: Error in if ((sum > 0 && sums1 > 0 && sums2 > 0) != NA) { : missing value where TRUE/FALSE needed I have including my code below for your review: fitness_1_data [[alternative HTML version deleted]]

Re: [R] ERROR: missing value where TRUE/FALSE needed

2013-07-17 Thread PIKAL Petr
that I wonder if anybody can resolve your problem. Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Lee Jejen Sent: Tuesday, July 16, 2013 11:29 PM To: r-help@r-project.org Subject: [R] ERROR: missing value where TRUE

Re: [R] ERROR: missing value where TRUE/FALSE needed

2013-07-17 Thread MacQueen, Don
In addition to what Petr said, That message most likely means that you have some missing data where you're not allowed to have missing data in your Datos. Look and see if the mctp() function has an argument that controls what it does with missing data. -Don -- Don MacQueen Lawrence Livermore

[R] ERROR: missing value where TRUE/FALSE needed

2013-07-16 Thread Lee Jejen
Hello, I have a problem... I tried using a function and I get the error: ERROR: missing value where TRUE/FALSE needed Here is my code: a-mctp(Ecoli~Fecha, data=Datos, type = Tukey, alternative = two.sided, asy.method = mult.t, plot.simci = TRUE)summary(a) Ecoli, Fecha and Datos are well defined.

Re: [R] Error .. missing value where TRUE/FALSE needed

2008-01-06 Thread jim holtman
When the error occurs, valueDiff is NA: Error in if ((seedCount = seedNumber) (valueDiff sup)) { : missing value where TRUE/FALSE needed valueDiff [1] NA Look at your loop; you are going through 100 times so on the last time you are trying to access: fcsPar[k+1] which is the 101th entry

[R] Error: missing value where TRUE/FALSE needed

2008-01-05 Thread Nicholas Crosbie
Can any explain the following error: Error in if ((seedCount = seedNumber) (valueDiff sup)) { : missing value where TRUE/FALSE needed which I get upon running this script: seedNumber - 10 seeds - array(dim = seedNumber) seedCount - 1 maxValue - 100 sup - maxValue / 2 fcsPar -

Re: [R] Error: missing value where TRUE/FALSE needed

2008-01-05 Thread Benilton Carvalho
make k = 100, note that you're doing fcsPar[k]-fcsPar[k+10] note fcsPar has length 100... therefore valueDiff becomes NA.. and the if() statement fails. b On Jan 6, 2008, at 1:16 AM, Nicholas Crosbie wrote: Can any explain the following error: Error in if ((seedCount = seedNumber)

Re: [R] Error: missing value where TRUE/FALSE needed

2008-01-05 Thread Benilton Carvalho
errata: fcsPar[k+1] On Jan 6, 2008, at 1:50 AM, Benilton Carvalho wrote: make k = 100, note that you're doing fcsPar[k]-fcsPar[k+10] note fcsPar has length 100... therefore valueDiff becomes NA.. and the if() statement fails. b On Jan 6, 2008, at 1:16 AM, Nicholas Crosbie wrote: Can