Re: [R] Output In R

2015-08-18 Thread Scott Tetrick
?write.csv and look at with the editor of choice. On Tue, Aug 18, 2015 at 6:41 AM, Shivi82 wrote: > Hello All, > > As i am a newbie in R so most of you would have seen this question zillion > times. I searched for the answer on this forum as well on other various > forums however could not fi

Re: [R] Need some vectorizing help

2011-11-26 Thread Scott Tetrick
S)[1]; }, S) now you have L for the left index, and R for the corresponding right index. If there is no right index due to the curve, the R value is NA. On 11/24/2011 7:35 AM, David Winsemius wrote: On Nov 24, 2011, at 4:52 AM, Scott Tetrick wrote: So I have a problem that I'm trying

[R] Need some vectorizing help

2011-11-24 Thread Scott Tetrick
So I have a problem that I'm trying to get through, and I just can't seem to get it to run very fast in R. What I'm trying to do is to find in a vector a local peak, then the next time that value is crossed later. I don't care about peaks that may be lower than this first one - they can be ig