reactants_in_reaction | R Documentation |
It is used to check which of the given species are
reactants in a reaction, returning a vector with the
species indexes in species
that are reactants
in reaction
.
reactants_in_reaction(species, reaction)
A vector filled with indexes specifying the species that are in a reaction as a reactant.
# Should return c(1, 2) DNAr:::reactants_in_reaction(c('A', 'B', 'C'), 'A + B -> C') # Should return c(1) DNAr:::reactants_in_reaction(c('A', 'B', 'C'), '2A -> B + C') # Should return c(1, 3) DNAr:::reactants_in_reaction(c('A', 'B', 'C'), 'A + C -> B')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.