Displaying 2 results from an estimated 2 matches for "jdeke".
Did you mean:
deke
2002 Oct 25
4
R v/s S-plus
Hi all,
I have Splus and R both on my unix machine. I intend to keep only one of
them. R looks to be a better choice. But I want to confirm. Is there any
function or group of functions in Splus that are absent in R?
Thanks,
Saket.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
2002 Sep 18
2
comparing elements in a vector
How about --
d is a vector as you described it, then define
d1 <- d[1:(length(d)-1)]
d2 <- d[2:length(d)]
d3 <- d1!=0 & d2!=0 & (d1-d2)!=0
I think d3 is the final vector you wanted.
I didn't test it, so I'm not sure my logic is right, but I think this is
definitely a path you can take...
-----Original Message-----
From: owner-r-help at stat.math.ethz.ch