Learn R Programming

MAMA (version 2.2.1)

colIntersect: Function to find intersect in columns of a data.frame

Description

Function returns intersect of all coulmns of a data.frame.

Usage

colIntersect(x)

Arguments

x
A data.frame

Value

Details

Intersect is found recursively. In means that at first the intersect of the first and the second column is computed. Later this intersect is compared to third column in order to obtain common values etc.

See Also

intersect, ~~~

Examples

Run this code
genes<-paste("Gene", 1:100)
O<-cbind(sample(genes), sample(genes), sample(genes))
colIntersect(O[1:50,])

Run the code above in your browser using DataLab