get_reactants: Get the reactants of a given reaction

View source: R/parser.R

get_reactantsR Documentation

Get the reactants of a given reaction

Description

This function returns the reactants of a reactions, removing their stoichiometry.

Usage

get_reactants(reaction)

Examples

DNAr:::get_reactants('A + B -> C')  # Returns c('A', 'B')
DNAr:::get_reactants('2A -> B')     # Returns c('A')

DanielKneipp/DNAr documentation built on Jan. 7, 2023, 12:42 p.m.