[R] counting the number of elements in a column

David Winsemius dwinsemius at comcast.net
Tue Nov 18 08:00:09 CET 2008


On Nov 18, 2008, at 12:50 AM, kayj wrote:

>
> Hi All,
>
> I have a column that contains values between 0 and 1.  I would like  
> to make
> a table that consists of the number of elements in each category.
>
> For example , how many elements have values between 0 and 0.1, 0.1  
> to 0.2,
> 0.2 to 0.3,etc……..0.9 to 1.
>
> Is there an easy way to do this?

?cut
?table

--
David Winsemius


More information about the R-help mailing list