It works but will only put the last row that matches the if statement. When I change the action from putting the row into a table to other things like, print(mastercourseTable[i,] it will print each row but as soon as I want them in a table it will not work properly.
Thank you. I am new to R, and I was not aware of this function, which is why I used a for loop. Another question because I am new, the %>% symbol. What does this do or is this just a place holder and I am supposed to swap it out for something?