Learn R Programming

phylosim (version 3.0.5)

intersect.list.PSRoot: Utility method returning the intersection of two lists

Description

Utility method returning the intersection of two lists. Duplicated elements are not considered.

Usage

# S3 method for PSRoot
intersect.list(this, one, two, ...)

Arguments

this

A PSRoot object.

one

A list of objects.

two

A list of objects.

...

Not used.

Value

The list containing the intersection.

See Also

For more information see PSRoot.

Examples

Run this code
# NOT RUN {
	# create some lists
	a<-list(1,2,3);
	b<-c(a,list("a","b","c"))
	# get the intersection of a and b
	PSRoot$intersect.list(a,b)
 
# }

Run the code above in your browser using DataLab