[R] Histogram classwise

Sarah Goslee sarah.goslee at gmail.com
Tue Apr 3 15:43:11 CEST 2012


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 <akpbond007 at 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



More information about the R-help mailing list