| To: | "Liaw, Andy" <andy_liaw@merck.com> |
|---|---|
| Subject: | Re: a simple Friday question |
| From: | Martin Maechler <maechler@stat.math.ethz.ch> |
| Date: | Sat, 25 Mar 2006 13:46:08 +0100 |
| Cc: | "'Chris Moyer'" <cmoyer@fs.fed.us>, "snews" <s-news@lists.biostat.wustl.edu> |
| In-reply-to: | <39B6DDB9048D0F4DAD42CB26AAFF0AFAFED9C8@usctmx1106.merck.com> |
| References: | <39B6DDB9048D0F4DAD42CB26AAFF0AFAFED9C8@usctmx1106.merck.com> |
| Reply-to: | Martin Maechler <maechler@stat.math.ethz.ch> |
>>>>> "AndyL" == Liaw, Andy <andy_liaw@merck.com>
>>>>> on Fri, 24 Mar 2006 20:15:23 -0500 writes:
AndyL> Something like this, perhaps:
>> cumprod(rep(1.1, 5))
AndyL> [1] 1.10000 1.21000 1.33100 1.46410 1.61051
Friday, indeed;
usually Andy would have used
> 1.1 ^ (1:5)
Martin
AndyL> Andy
AndyL> From: Chris Moyer
>>
>>
>> Hello-
>>
>> It must be Friday... the answer to this simple question
>> completely escapes me. I need to create a sequence of
>> numbers in which each subsequent number is a percentage
>> increase (say 10 % ) of the previous number such as:
>>
>> 1 1.1 1.21 1.33 etc.
>>
>> I'm using S-PLUS 6 on Win 2000.
>>
>> Thanks in advance for any suggestions.
>>
>> Chris Moyer AREMP Field Operations Supervisor Aquatic and
>> Riparian Effectiveness Monitoring Program Phone:
>> 541.750.7017 Cell: 541.231.8934 (NEW) Fax: 541.750.7234
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: a simple Friday question, Liaw, Andy |
|---|---|
| Next by Date: | useR! 2006 program online, Achim Zeileis |
| Previous by Thread: | Re: a simple Friday question, Liaw, Andy |
| Next by Thread: | useR! 2006 program online, Achim Zeileis |
| Indexes: | [Date] [Thread] [Top] [All Lists] |