check_crn: Check if a CRN is respecting the limitations of the function...

View source: R/parser.R

check_crnR Documentation

Check if a CRN is respecting the limitations of the function react()

Description

This function can be used to check the crn parameters passed to react(). It checks:

  • If all the parameters are correctly defined and of the correct type;

  • If the length of species and reactions are equal to the length of ci and ki, respectively;

  • If there is no duplicate of species names on the species parameter. The parameters of this function are the same of react().

Usage

check_crn(species, ci, reactions, ki, t)

Value

The reactions after the preprocessing made by check_fix_reaction() witch checks the reactions and fix them when it is possible.


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