Creates a new summary object for the summrt package while validating the input.

new_summrt(date, median, lb, ub, package, notes)

# S3 method for class 'summrt_summary'
print(x, ...)

Arguments

date

Integer vector. vector of index dates.

median

Double vector. vector of median values.

lb

Double vector. vector of lower bounds.

ub

Double vector. vector of upper bounds.

package

String. Name of the package.

notes

String. Notes about the summary.

x

An object of class summrt_summary.

...

Additional arguments passed to methods.

Value

A list of class summrt_summary. with the following components:

  • estimates: A tibble with the following columns:

    • date: Integer vector. vector of index dates.

    • median: Double vector. vector of median values.

    • lb: Double vector. vector of lower bounds.

    • ub: Double vector. vector of upper bounds.

  • package: String. Name of the package.

  • notes: String. Notes about the summary.