census_path_collection: Census each path in a collection of paths to obtain the...

View source: R/census_path_collection.R

census_path_collectionR Documentation

Census each path in a collection of paths to obtain the compartment counts at census times.

Description

Census each path in a collection of paths to obtain the compartment counts at census times.

Usage

census_path_collection(
  paths,
  census_times,
  census_columns = NULL,
  as_array = FALSE
)

Arguments

paths

either a list or array of paths

census_times

vector of census times

census_columns

indices of columns to be censused. If not specified, will default to all columns except 'time', 'event', and 'ID'.

as_array

return the matrices of compartment counts as an array?

Value

a list (default) or array of matrices of compartment counts at census times.


fintzij/stemr documentation built on March 25, 2022, 12:25 p.m.