Description Details Author(s) Examples
Convert an IndexedRelations object to and from different Bioconductor classes.
A number of coerce
methods are available to convert to/from an IndexedRelations object:
as(from, "IndexedRelations")
for a Pairs x
will return an IndexedRelations object where the first vector in from
becomes the first partner in the output.
as(from, "IndexedRelations")
for a DataFrame x
will return an IndexedRelations object where the first column in from
becomes the first partner in the output.
as(from, "DataFrame")
for an IndexedRelations x
will return a DataFrame object where the first column is the first partner in From
.
In addition, makePairsFromIndexedRelations(x)
will create a Pairs instance from an IndexedRelations x
.
This requires that x
only has two partners in each relationship, otherwise an error is thrown.
Aaron Lun
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.