intersection: 'intersection' take intersection of multiple lists and return...

Description Usage Arguments Value

View source: R/intersection.R

Description

intersection take intersection of multiple lists and return the common set and index

Usage

1
intersection(list.vector, order = "sort")

Arguments

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.

Value

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)


kkang7/CDSeq_R_Package documentation built on May 4, 2021, 8:12 p.m.