Learn R Programming

OrderedList (version 1.44.0)

overlap: Count Elements in Overlap between two Lists

Description

For each rank up to a given limit, count the number of elements in the overlap between two lists.

Usage

overlap(x1, x2, n)

Arguments

x1,x2
ordered lists
n
the largest rank to be considered

Value

Returns a vector of integers. The i-th element gives the number of common elements in the first i positions of both lists.