Quantcast
Channel: IF "OR" multiple conditions - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article



Answer 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 Article

IF "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
Browsing latest articles
Browse All 3 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>