Compare datasets in R
问题 I have gathered a set of transactions in a CSV file of the format: {Pierre, lait, oeuf, beurre, pain} {Paul, mange du pain,jambon, lait} {Jacques, oeuf, va chez la crémière, pain, voiture} I plan to do a simple association rule analysis, but first I want to exclude items from each transactions which do not belong to ReferenceSet = {lait, oeuf, beurre, pain} . Thus my resulting dataset would be, in my example : {Pierre, lait, oeuf, beurre, pain} {Paul,lait} {Jacques, oeuf, pain,} I'm sure this