Answer by Math for IF "OR" multiple conditions
In R you can't use , to separate line, but you can use ;.Also, the way you are doing considers a,b and c are boolean (TRUE/FALSE), which is not the case as they are numbers. Your condition should be...
View ArticleAnswer by ibci for IF "OR" multiple conditions
The problem is with the commas that separate your variables. R syntax does not allow you to do it. Write it this way:if (a && b && c && d == 0){ a=a+0.5 b=b+0.5 c=c+0.5...
View ArticleIF "OR" multiple conditions
I have a standard 2x2 table Yes NoYes a bNo c dI want to create a condition whereby IF(a or b or c or d = 0) then 0.5 is added on to each of the cells a,b,c,d.I have tried this: if(a && b...
View Article
More Pages to Explore .....