I am attempting to change the variables in NETRTG to be 0 if it is a negative value and 1 if it is a positive value. I have been trying to use a combination of mutate if functions, but having little success. Will take any and all guidance here! Thanks
ID | Home | Away | Team | NETRTG |
---|---|---|---|---|
4983535 | UCLA | Seattle U | Seattle U | -36.111 |
4984328 | Long Beach St. | Seattle U | Seattle U | -5.212 |
4984564 | Washington | Seattle U | Seattle U | -45.503 |
4985254 | Seattle U | Northwest (WA) | Seattle U | 69.172 |
4985790 | Seattle U | Col. of Idaho | Seattle U | 37.563 |
4986583 | California | Seattle U | Seattle U | -6.2 |
4986962 | Seattle U | Portland | Seattle U | 16.855 |
4988878 | Seattle U | Saint Martin's | Seattle U | 46.131 |
4989835 | Seattle U | Utah Valley | Seattle U | -3.333 |
4996158 | Dixie St. | Seattle U | Seattle U | -4.146 |
4996988 | Dixie St. | Seattle U | Seattle U | 25.034 |