Given a table, I am trying to learn how to use R for summing variables based on when a certain condition is met (based on other variables in the same table).
Using th