This is not a code writing service. Posters are expected to first make an honest effort and show us their code as part of their post. Please read the posting guide to learn what is expected.
However, a hint to get you started: see ?cut If you have not already gone through an R tutorial or two, please do so before posting further. There are many good ones on the web. Cheers, Bert Gunter Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, May 6, 2016 at 9:40 AM, Partha Sinha <pnsinh...@gmail.com> wrote: > M1 M2 M4 > 60 86 48 > 72 90 86 > 66 86 62 > 69 60 48 > 66 86 58 > I want to frequency table by binning the data in 0-60, 61-80,80-100 > and want output as > M1 M2 M3 > 0-60 > 61-80 > 80-100 > > How to do > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.