I'm not entirely sure what you mean, but maybe split() and lapply() would help?
Sarah On Tue, Apr 3, 2012 at 8:20 AM, arunkumar1111 <akpbond...@gmail.com> wrote: > Hi > I have a data class wise. I want to create a histogram class wise without > using for loop as it takes a long time > my data looks like this > > x class > 27 1 > 93 3 > 65 5 > 1 2 > 69 5 > 2 1 > 92 4 > 49 5 > 55 4 > 46 1 > 51 3 > 100 4 > > > > > ----- > Thanks in Advance > Arun > -- -- Sarah Goslee http://www.functionaldiversity.org ______________________________________________ R-help@r-project.org 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.