get_products: Get the products of a given reaction

View source: R/parser.R

get_productsR Documentation

Get the products of a given reaction

Description

This function returns the products of a reactions, removing their stoichiometry. If the reaction is of the type 'A -> 0', '0' is returned as a species since it is considered a special species.

Usage

get_products(reaction)

Examples

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

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