Learn R Programming

EpiNow2 (version 1.8.0)

$.estimate_infections: Extract elements from estimate_infections objects with deprecated warnings

Description

[Deprecated] Provides backward compatibility for the old return structure. The previous structure with samples and summarised elements is deprecated. Use the accessor methods instead:

  • samples - use get_samples(object)

  • summarised - use summary(object, type = "parameters")

Usage

# S3 method for estimate_infections
$(x, name)

Value

The requested element with a deprecation warning for deprecated elements

Arguments

x

An estimate_infections object

name

The name of the element to extract