How do I check if the student have achieve higher marks in "Grade2" compared to their previous grade in "Grade1"
df = data.frame(Grade1 = c("5","1","7","6"),
Grade2 = c("4", "5", "10", "10"))
df
rownames(df) = c("StudentA","StudentB","StudentC","StudentD")
df