get_species: Get the species of a reaction part

View source: R/parser.R

get_speciesR Documentation

Get the species of a reaction part

Description

Given part of a reaction, this function returns the species of it without the stoichiometry.

Usage

get_species(reaction_part)

Arguments

reaction_part

Left or right part of a reaction.

Details

The species name must starts with a letter or be 0 (for special degradation and formation reactions).

Value

A vector with the species names. It will return an empty vector if there is no species (0 is considered a species) on the reaction or there is only bad formed names

Examples

DNAr:::get_species('A + 2B')  # Should return c('A', 'B')

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