[6254] in s-news-athena
Re: counting replicated X
daemon@ATHENA.MIT.EDU (Simon Jackman)
Tue Jan 24 19:04:24 1995
Date: Tue, 24 Jan 1995 17:19:44 -0600 (CST)
From: Simon Jackman <acbsjack@gosnell.spc.uchicago.edu>
To: Bill Shipley <bshipley@courrier.usherb.ca>
Cc: S-news@utstat.toronto.edu
In-Reply-To: <9501241833.AA20965@courrier.usherb.ca>
This sounds simple; try table(x)
> x<-c(1,1,1,2,2,3,4,4)
> x
[1] 1 1 1 2 2 3 4 4
> table(x)
1 2 3 4
3 2 1 2
cheers -- simon
========================================================================
Simon Jackman, Dept of Political Science, Univ of Chicago, 5828
S.University Ave, Chicago, IL 60637. ph: 312.702.8075. fax: x.x.1689
"But the age of chivalry is gone. That of sophisters, economists, and
calculators has succeeded; and the glory of Europe is extinguished for
ever." (Burke, _Reflections on the Revolution in France_)