Skip to content

Freq table

2 messages · Partha Sinha, Bert Gunter

#
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
#
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 <pnsinha68 at gmail.com> wrote: