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

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
2
## S3 method for class '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.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see PSRoot.

Examples

1
2
3
4
5
6
	# 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)
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.