[R] creating a reverse geometric sequence

Ben Bolker bolker at ufl.edu
Sun May 23 20:43:29 CEST 2010


Erik Iverson <eriki <at> ccbr.umn.edu> writes:

> Can anyone think of a non-iterative way to generate a decreasing geometric 
> sequence in R?

Reduce("%/%",rep(2,4),init=20,accum=TRUE)



More information about the R-help mailing list