isempty_part: Check if part of a reaction is equal to 0.

View source: R/parser.R

isempty_partR Documentation

Check if part of a reaction is equal to 0.

Description

This function is useful when you have a reaction and you want to check if it is something like 'A -> 0' (something to nothing). To do this you get the second part of the reaction with get_second_part() and then use this function with the second part as the parameter.

Usage

isempty_part(react_part)

Examples

sp <- DNAr:::get_second_part('A -> 0')
DNAr:::isempty_part(sp)  # Should return TRUE

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