Learn R Programming

epiparameter (version 0.4.1)

mean.epiparameter: Mean method for <epiparameter> class

Description

Mean method for <epiparameter> class

Usage

# S3 method for epiparameter
mean(x, ...)

Value

A numeric mean of a distribution or NA.

Arguments

x

An <epiparameter> object.

...

dots Not used, extra arguments supplied will cause a warning.

Examples

Run this code
ep <- epiparameter_db(
  disease = "COVID-19",
  epi_name = "incubation period",
  single_epiparameter = TRUE
)
mean(ep)

Run the code above in your browser using DataLab