Skip to contents

Total over all components

Usage

total(dist, ...)

Arguments

...

Unused; for methods.

Value

A sampled object with one draw per simulation.

Examples

pd <- predictive_distribution(matrix(1:6, ncol = 2), data.frame(year = c(2023, 2024)))
total(pd)@draws
#> [1] 5 7 9