| To: | "'Leeds, Mark'" <mleeds@mlp.com>, s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Re: strange counting function needed |
| From: | "Liaw, Andy" <andy_liaw@merck.com> |
| Date: | Fri, 27 Aug 2004 21:50:48 -0400 |
|
Mark,
I'm
not sure which of the following is what you want, but I guessing it's one of
them:
> x <- c("AAA", "BBB", "AAA",
"CCC", "DDD", "CCC")
> table(x) x AAA BBB CCC DDD 2 1 2 1 > tab <- table(x) > tab[x] x AAA BBB AAA CCC DDD CCC 2 1 2 2 1 2 HTH,
Andy
------------------------------------------------------------------------------ |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Calculation glitch?, Steve Su |
|---|---|
| Next by Date: | Re: Calculation glitch?, Austin, Matt |
| Previous by Thread: | strange counting function needed, Leeds, Mark |
| Next by Thread: | Calculation glitch?, Steve Su |
| Indexes: | [Date] [Thread] [Top] [All Lists] |