Displaying 1 result from an estimated 1 matches for "328990".
Did you mean:
32890
2011 May 02
2
vector decreasing by a factor
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() but increasing or decreasing by factors? I need to do this in one step i.e, not using loops. Any help