Returns the index(es) of specific compartment(s).
Usage
comp_pos(model, comp)
# S4 method for class 'ModelOrg,character'
comp_pos(model, comp)
# S4 method for class 'ModelOrg,numeric'
comp_pos(model, comp)
# S4 method for class 'ModelOrg,missing'
comp_pos(model, comp)
# S4 method for class 'ModelOrg,logical'
comp_pos(model, comp)
Arguments
- model
Model of class ModelOrg
- comp
Character vector with compartment IDs or Integer vector providing indexes.