search for: relativn

Displaying 1 result from an estimated 1 matches for "relativn".

Did you mean: relative
2012 Mar 05
1
If function error: missing value where TRUE/FALSE needed
Hello! I am trying to get a logic estatement in R using the if function, but it is all the time comming and error, I have tryied different methods but nothing is working the sentence is the following: dispersal[1] <- if (any (relativenes[1] < cost)) ((relativenes[1]- cost)/(relativenes[1]- cost*cost)) else 0 for (i in 2: time){ dispersal[i] <- if (any