I would like to create multiple DFs, where each new DF only contains observations for that student. Currently, I create a new DF using the following code. Which I repeat, changing the students name.
James <- All_Results [which(All_Results$`Student.x` =='James'),]
DF: All_Results
Student Score_Jan Score_Feb Score Mar
James 12 76 23
James 52 86 63
James 19 74 83
Nick 72 26 54
Nick 92 16 43
Nick 12 76 23
Tony 87 36 52
Tony 22 46 33
How can I do this if I have the following
c(James, Nick, Tony)
Any help is appreciated