isOfClass {rBiopaxParser} | R Documentation |
This function checks if instances in the supplied biopax data.table are of a given class. If considerInheritance is set to TRUE it also checks if instances are of a given class or any of its inherited classes.
isOfClass(df, class, considerInheritance = FALSE, biopaxlevel = 2)
df |
A data.frame with biopax instances |
class |
A string containing the class name to check for |
considerInheritance |
Logical value indicating wether to consider inheritance or not |
biopaxlevel |
Numeric. Specifies the Biopax Level to use. |
Returns TRUE for every row in the data.frame which is of the supplied class
Frank Kramer
# load data data(biopaxexample)