Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

[R] How to count the number of occurence?

tj

2010-03-20

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi, may I ask for your help...
What is the R code if I want to count the number of times that "2" appeared
in the following R output

> k
[1] 1 1 1 1 1 1 3 1 2 1 1 1 1 1 1 1 1 3 2 1 1 4 1 1 1 1 1 5 1 1




Thank you for your help. :-)
--
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.