Skip to contents

Counts the species the model declares.

Usage

getNumSpecies(input_model)

Arguments

input_model

input should be an SBML model

Value

an integer, the number of species

Examples

sbml_file <- system.file("examples", "sbmlsimple.xml", package = "r2sbml")
model <- getModel(sbml_file)
#> 
#>   filename: /home/runner/work/_temp/Library/r2sbml/examples/sbmlsimple.xml
#>   error(s): 0
#> 
#> 
#> File: /home/runner/work/_temp/Library/r2sbml/examples/sbmlsimple.xml (Level 3, version 2)
getNumSpecies(model)
#> [1] 4