Skip to contents

Extract summary statistics for projections

Usage

summarise_projections(
  x,
  funs = c(quantile = quantile, min = min, max = max, mean = mean, sd = sd2),
  ...
)

Arguments

x

output from spatial_project function

funs

a list of summary functions to be applied. It is the user's responsibility to ensure that the functions are valid and can be applied to a vector. Defaults to quantile, min, max, mean and sd.

...

Additional arguments for funs, e.g. na.rm, probs

Value

A list of the same length as that of the supplied functions. Each element of the list is the result of applying the corresponding function across simulations for each day and each location.

Details

If you want to use multiple functions and pass optional arguments other than na.rm, then use sd2 rather than sd to estimate standard deviation. This is because sd does not accept optional arguments.

Author

Sangeeta Bhatia, Anne Cori, Pierre Nouvellet