Displaying 1 result from an estimated 1 matches for "trueint".
Did you mean:
treinz
2014 Feb 07
2
suggestion for "sets" tools upgrade
...ust seems more sensible to add to the base.
Thanks in advance for any advice or comments.
(Please be sure to email, as I can't recall if I'm currently registered
for r-devel)
Here's an example of the new code:
intersect<-function (x, y,multiple=FALSE)
{
y <- as.vector(y)
trueint <- y[match(as.vector(x), y, 0L)]
if(!multiple) trueint <- unique(trueint)
return(trueint)
}
thanks
Carl
-