| To: | <s-news@lists.biostat.wustl.edu> |
|---|---|
| Subject: | Data manipulation |
| From: | "Khan, Sohail" <khan@cshl.edu> |
| Date: | Wed, 27 Sep 2006 15:20:36 -0400 |
| Thread-index: | AcbiagKupodgaVfaR+i1A3kEuWjkQA== |
| Thread-topic: | Data manipulation |
Dear list, I have a data frame as: id ratio abs.pos a 1.5 25 b 2.5 36 c 1.9 48 d 2.3 57 e 2.9 66 f 1.3 74 I would like to do something like: abs.pos1 + 10 = x while x < abs.pos2.....abs.pos3.....abs.pos6 average(ratio1.......ratio6) print id1 avg.ratio otherwise abs.pos2+10=y while y<abs.pos3....abs.pos4.... average(ratio2,ratio4) print id2 avg.ratio Thanks for any suggestions. Sohail |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | excursions, Xao Ping |
|---|---|
| Next by Date: | trellis: passing on formula and data to panel, Klaas Prins |
| Previous by Thread: | excursions, Xao Ping |
| Next by Thread: | trellis: passing on formula and data to panel, Klaas Prins |
| Indexes: | [Date] [Thread] [Top] [All Lists] |