print.incidence2 {incidence2}R 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)

}


[Package incidence2 version 2.2.3 Index]