Re: [R] recursively divide a value to get a sequence

2008-07-09 Thread Erik Iverson
base , if you're not seeing it, upgrade your version of R to the latest. Carl Witthoft wrote: Query: what package is Reduce in? (per GG's suggestion to use it) thanks Carl __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-h

Re: [R] recursively divide a value to get a sequence

2008-07-09 Thread Carl Witthoft
Query: what package is Reduce in? (per GG's suggestion to use it) thanks Carl __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide com

Re: [R] recursively divide a value to get a sequence

2008-07-09 Thread Wacek Kusnierczyk
} > >> dilute(15000,5,9) >> > > Cheers, René > > > > >> -Ursprüngliche Nachricht- >> Von: "Anne-Marie Ternes" <[EMAIL PROTECTED]> >> Gesendet: 09.07.08 14:12:16 >> An: r-help@r-project.org >> Betreff: [R] recursively divide a val

Re: [R] recursively divide a value to get a sequence

2008-07-09 Thread René Capell
-- > Von: "Anne-Marie Ternes" <[EMAIL PROTECTED]> > Gesendet: 09.07.08 14:12:16 > An: r-help@r-project.org > Betreff: [R] recursively divide a value to get a sequence > Hi, > > if given the value of, say, 15000, I would like to be able to divide > that valu

Re: [R] recursively divide a value to get a sequence

2008-07-09 Thread Berwin A Turlach
G'day all, On Wed, 09 Jul 2008 20:33:39 +1000 Jim Lemon <[EMAIL PROTECTED]> wrote: > On Wed, 2008-07-09 at 11:40 +0200, Anne-Marie Ternes wrote: > > Hi, > > > > if given the value of, say, 15000, I would like to be able to divide > > that value recursively by, say, 5, and to get a vector of a >

Re: [R] recursively divide a value to get a sequence

2008-07-09 Thread Gabor Grothendieck
See ?Reduce Reduce("/", rep(5, 9), 15000, acc = TRUE) On Wed, Jul 9, 2008 at 5:40 AM, Anne-Marie Ternes <[EMAIL PROTECTED]> wrote: > Hi, > > if given the value of, say, 15000, I would like to be able to divide > that value recursively by, say, 5, and to get a vector of a determined > length, say

Re: [R] recursively divide a value to get a sequence

2008-07-09 Thread Anne-Marie Ternes
Keith, I am simply baffled! Didn't think a second about doing it this way, tsss - Great! Thanks also for Daniel, Jim's and Bart's proposals! R is cool, I realise it every day again :-) Thanks!! On Wed, Jul 9, 2008 at 12:33 PM, Jim Lemon <[EMAIL PROTECTED]> wrote: > On Wed, 2008-07-09 at 11:40

Re: [R] recursively divide a value to get a sequence

2008-07-09 Thread Jim Lemon
On Wed, 2008-07-09 at 11:40 +0200, Anne-Marie Ternes wrote: > Hi, > > if given the value of, say, 15000, I would like to be able to divide > that value recursively by, say, 5, and to get a vector of a determined > length, say 9, the last value being (set to) zero- i.e. like this: > > 15000 3000 6

Re: [R] recursively divide a value to get a sequence

2008-07-09 Thread Keith Jewell
> a.start <- 15000 > a.step <- 5 > a.length <- 9 > c(a.start*a.step^-(0:(a.length-2)),0) "Anne-Marie Ternes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > if given the value of, say, 15000, I would like to be able to divide > that value recursively by, say, 5, and to get a

Re: [R] recursively divide a value to get a sequence

2008-07-09 Thread Daniel Malter
- -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Anne-Marie Ternes Gesendet: Wednesday, July 09, 2008 5:40 AM An: r-help@r-project.org Betreff: [R] recursively divide a value to get a sequence Hi, if given the value of, say, 15000, I

[R] recursively divide a value to get a sequence

2008-07-09 Thread Anne-Marie Ternes
Hi, if given the value of, say, 15000, I would like to be able to divide that value recursively by, say, 5, and to get a vector of a determined length, say 9, the last value being (set to) zero- i.e. like this: 15000 3000 600 120 24 4.8 0.96 0.192 0 These are in fact concentration values from an