expand_species: Function to expand species according to their stoichiometry

View source: R/parser.R

expand_speciesR Documentation

Function to expand species according to their stoichiometry

Description

This function expand a list of species according to the stoichiometry of the species. E.g.: given a list of species ('A', 'B') and a stoichiometry of A = 1 and B = 2, the resulting list will be a list ('A', 'B', 'B').

Usage

expand_species(species, stoichiometry)

Arguments

species

The list of species;

stoichiometry

A function that calculates the stoichiometry of the species.

Value

An expanded list of species.


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