pair | R Documentation |
Creates a Pairs from two vectors, optionally via a left outer join.
pair(x, y, ...)
## S4 method for signature 'Vector,Vector'
pair(x, y, by = findMatches(x, y), all.x = FALSE,
NA.VALUE = y[NA])
x |
The “first” vector. |
y |
The “second” vector. |
by |
The |
all.x |
If |
NA.VALUE |
The value to fill holes in |
... |
Arguments for methods. |
This might move to S4Vectors at some point. It is distinct from
simple Pairs
construction, because it
performs transformations like a left outer join. More options might be
added in the future.
For GRanges and other ranged objects, pair
adds “.” to
the seqlevels, because that is the seqname of the missing GRanges.
A Pairs object
Michael Lawrence
Pairs-class
, created by this function.
bedtools_intersect
, whose loj
argument motivated
the creation of this function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.