| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Question about aggregate() and statistics with greater than one v alue returned |
| From: | "Li, Mike" <LiMIK@cder.fda.gov> |
| Date: | Fri, 21 May 2004 13:15:46 -0400 |
|
Can you suggest a way to implement the aggregate function which allows it to return more than a single value for each subset of the data? i.e. Suppose you have the following dataset:
The aggregate function accepts arguments to "fun" that return single statistics, such as mean.
However, I want to have the aggregate function perform functions on the subsetted data that return several values, such as by using the "unique" function. i.e. The following code fails:
Can you suggest an efficient way to perform operations on subsets of data?
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [no subject], natalie nicholls (IAH-C) |
|---|---|
| Next by Date: | converting multi-plot graphs to objects & selecting graph objects, Schwarz, Paul |
| Previous by Thread: | [no subject], natalie nicholls (IAH-C) |
| Next by Thread: | Re: Question about aggregate() and statistics with greater than, Sundar Dorai-Raj |
| Indexes: | [Date] [Thread] [Top] [All Lists] |