intersection {CDSeq} | R Documentation |
intersection
take intersection of multiple lists and return the common set and indexintersection
take intersection of multiple lists and return the common set and index
intersection(list.vector, order = "sort")
list.vector |
this is a list of list contain all the data. |
order |
this is either sort or stable. If choose sort, the output common value will be sorted. If choose stable, the output common value will be in the same order as appear in the first element in list.vector. |
The common values among lists and their indices. intersection function: input: list.vector is a list of list contain all the data for example, if we need to find the common elements of a, b, c, then input should be list(a,b,c)