Wrapper for evaluating the compartment counts at census times.

census_path(path, census_times, census_columns = NULL, census_matrix = NULL)

Arguments

path

matrix containing the path to be censused.

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'.

census_matrix

existing matrix of compartment counts at census times to be modified in place. If not specified, a new matrix will be returned.

Value

matrix of compartment counts at census times