getCompartments: Get compartments

View source: R/getCompartments.R

getCompartmentsR Documentation

Get compartments

Description

This is a utility function to obtain the names of the compartments with the specified type

Usage

getCompartments(model, type)

## S3 method for class 'SEIRModel'
getCompartments(model, type)

## S3 method for class 'SEIRVModel'
getCompartments(model, type)

## S3 method for class 'SEIRV2DoseModel'
getCompartments(model, type)

## S3 method for class 'SEIRVMonoModel'
getCompartments(model, type)

Arguments

model

The model for which compartment names are desired

type

The type of the compartment

Value

A vector of compartment names


HHS/ASPR-flumodels documentation built on Dec. 6, 2022, 12:20 p.m.