.insertPEP | R Documentation |
This function inserts the PEP (Project-class
)
into the metadata slot of objects that
extend the Annotated-class
.insertPEP(object, pep)
object |
an object of |
pep |
an object of class |
Additionally, if the object extends the
Annotated-class
(or is a list that will be
automatically converted to a List
) the show method
for its class is redefined to display the Project-class
as the metadata.
an object of the same class as the object argument but enriched with the metadata from the pep argument
# If the object is of class Annotated
object = S4Vectors::List(result='test')
result = .insertPEP(object, pepr::Project())
metadata(result)
# If the object is not of class Annotated
object1 = 'test'
result1 = .insertPEP(object1, pepr::Project())
metadata(result1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.