print.incidence2: Print an incidence object.

View source: R/printing.R

print.incidence2R Documentation

Print an incidence object.

Description

Printing of ⁠<incidence2>⁠ objects is handled via the pillar package.

Usage

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

Arguments

x

⁠<incidence2>⁠ object.

...

Additional arguments passed through to pillar::tbl_format_setup().

Examples

if (requireNamespace("outbreaks", quietly = TRUE)) {

    data(ebola_sim_clean, package = "outbreaks")
    dat <- ebola_sim_clean$linelist

    (out <- incidence(dat, "date_of_onset"))

    # use `n` to print more lines
    print(out, n = 20L)

}


incidence2 documentation built on July 9, 2023, 5:35 p.m.