From J.C.Rougier@durham.ac.uk  Tue Jan  4 15:47:57 2000
From: J.C.Rougier@durham.ac.uk (Jonathan Rougier)
Date: Tue, 4 Jan 2000 15:47:57 +0000 (GMT)
Subject: set functions
Message-ID: <Pine.GSO.4.20.0001041528420.20724-100000@laplace>

I wonder if we might also include an "equiv" function along with the other
set functions (ie "union", "intersect", etc), perhaps along the lines of

"equiv" <- function(x, y) all(c(match(x, y, 0)>0, match(y, x, 0)>0))

(which I think might be the quickest implementation).  I use this type of
function quite frequently: is there some reason why it is not in the base?

Cheers, Jonathan.

Jonathan Rougier                       Science Laboratories
Department of Mathematical Sciences    South Road
University of Durham                   Durham DH1 3LE

"[B]egin upon the precept ... that the things we see are to be 
 weighed in the scale with what we know"  (Meredith, 1879, The Egoist)


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


set functions
Jonathan Rougier