I populate a datatable from a scrape of a table on a web page. The data looks like the following:
[NAME,SCORE,TOTAL,DATED
Bob,0,1234,29/05/2019
Joe,NA,0,01/01/2018
Ken,0,0,22/11/2018
Rik,2345,0,22/11/2018
]
I would like to remove the rows where both Score and Total are 0 and or NA. If either has a value in it greater than 0 or that is not NA, then I want to keep the row.
I tried using an IF statement in a For each row and deleting the row if the conditions of the IF were met, but the For each row does not like it when you delete a row in the For loop. This makes sense because the new total number of rows has changed and would impact the loop.
How might I achieve removing the row based on two conditions?
(Score=β0β OR Score=βNAβ) AND (Total=β0β OR Total=βNAβ)