[R] Split data frame based on Class

Chris Arthur chris.arthur at bristol.ac.uk
Mon May 18 13:23:55 CEST 2009


Each row of my data frame is assigned to a class (eg country). Can you 
suggest how I break apart the data frame so that I create new data 
frames for each class

eg

If Class = "US" put in new dataframe dataUS

Thanks in advance for your help

Chris




More information about the R-help mailing list