Hi all, I don't know if this is the correct venue for this question, but I am sure that someone will correct me if I am in the wrong list.
I have been searching throughout R for a function that can find the intersection of multiple sets of "things". Say for instance, I have a list of $n$ character vectors and would like to find the intersection of all $k$ subsets. I don't believe that there is such a function to do this (or am I wrong?). It is a pretty easy to encode such a function...there was an e-mail about how a recursive function to intersect an arbitrary number of sets which is elegant and useful (sorry I forgot the person's name who wrote the 2 line function). My question is two-fold: 1. If such a function already exists, what is it called? 2. If such a function does not exists, it is worthwhile to encode it (i.e. can I send my code to someone?). Cheers, --tony [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel