I have a data frame looking like this:
Grade   Class_Dept   Class_Name   Class_Work
9       English      English 1    30
10      History      Modern World 50
11      Science      AP Chem      85
12      Math         Calc BC      45
It extends further than that, but that's the general idea. I would like to split this into multiple smaller data frames by Class_Name. I tried using plyr, but couldn't figure it out. I also tried the split() function, which worked, but did not allow me to index into each sub-dataframe in a for loop. Is there any other way I can do this? Any help would be appreciated.
Also, the split() function would work if I could index into each sub-dataframe. If that doesn't make sense, what I would want to do is get the mean and standard deviation of the Class_Work for each Class_Name and compare them. I could do this manually with the list returned from split(), but it would take a long time, as my dataframe has about 120 different classes. If there's a way to automate this, that would be fantastic.
 
     
     
     
    