[R] split data set

From: Aimin Yan <aiminy_at_iastate.edu>
Date: Fri 19 Jan 2007 - 18:43:49 GMT


I have a data(ABC) like this:

      x y
A 3 4
A 1 3
B 2 6
B 4 8
C 5 4
C 6 7

I want to split this data into

A:

   x y
A 3 4
A 1 3

B
B 2 6
B 4 8

C
C 5 4
C 6 7

anyone knows how to do that?

thanks,

Aimin Yan



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat Jan 20 06:15:36 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 20 Jan 2007 - 00:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.