Suppose I have a data frame with 7 variables. I want to subset the data frame based on the contents of one column automatically. The column is Department and there are 17 different values. I would like R to look at the column "Dept" and create a new data frame for each Dept containing all other rows. This would be the equivalent of "Split Worksheet" in Minitab. For now, I have to run the subset command 17 times to create a data frame for each. Can R do this automatically based on the column content?
Best and thanks!