Re: [R] vector decreasing by a factor

2011-05-02 Thread Uwe Ligges
On 02.05.2011 09:55, andre bedon wrote: Hi, I'm quite new to R so this question will sound quite fundamental. I need to create a vector of length 160. The first element should be (1+r)^159 and each element thereafter should decrease by a factor of (1+r) until the 160th element that should b

Re: [R] vector decreasing by a factor

2011-05-02 Thread Ted Harding
On 02-May-11 07:55:27, andre bedon wrote: > Hi, > I'm quite new to R so this question will sound quite fundamental. > I need to create a vector of length 160. The first element should > be (1+r)^159 and each element thereafter should decrease by a > factor of (1+r) until the 160th element that shou

[R] vector decreasing by a factor

2011-05-02 Thread andre bedon
Hi, I'm quite new to R so this question will sound quite fundamental. I need to create a vector of length 160. The first element should be (1+r)^159 and each element thereafter should decrease by a factor of (1+r) until the 160th element that should be 1. Is there a function similar to seq() bu