lundi 2 novembre 2020

Conditionally calculate column in R

I have a table like this:

enter image description here

I have two teams. I want to award 1 point depending on the KPI:

  • for baseball the point is awarded if greater or equal than goal.
  • for basketball the point is awarded if less than goal.

How can I create a Score column that calculates that? Any ideas?

Aucun commentaire:

Enregistrer un commentaire