[R] progress bar

2008-02-18 Thread Syed Abid Hussaini
Hi all, I have some functions which sometimes take longer to run and it would be useful to have a progress bar showing how much time is left for the script to finish (something like a download progress bar). I tried searching but could not find it. Is this possible with R? Note: Using R version

[R] progress bar

2008-02-18 Thread Syed Abid Hussaini
I have some functions which sometimes take longer to run and it would be useful to have a progress bar showing how much time is left for the script to finish (something like a download progress bar). I tried searching but could not find it. Is this possible with R? Note: Using R version: 2.6.1

Re: [R] saving while loop values to one vector

2007-12-24 Thread Syed Abid Hussaini
values non-decreasingly because the code "i <- findInterval((wave2[1]), wave2)" doesnt work without this sorting. But all that is past now since i found the diff function. Thanks again. abid > > From: "Gabor Grothendieck" <[EMAIL PROTECTED]> > CC: [EMAIL PROTECTE

Re: [R] saving while loop values to one vector

2007-12-23 Thread Syed Abid Hussaini
i in i:x) { out[i] <- (wave2 [i] - wave2[i-1]) } out As you see i trimmed the code and alloted a new variable called out which i later save my values to. --- Syed Abid Hussaini <[EMAIL PROTECTED]> wrote: > Hi all, > I am pretty new to R and even new to programming in general. Right

[R] saving while loop values to one vector

2007-12-23 Thread Syed Abid Hussaini
Hi all, I am pretty new to R and even new to programming in general. Right now i get only one value for j below (print(j)), how do i save all j values to one vector or matrix? Sorry for this very basic question. thanks in advance. wave2 <- abs(Re(rnorm(100))) i <- findInterval((wave2[1]), wave