Learn R Programming

incidence2 (version 2.2.3)

print.incidence2: Print an incidence object.

Description

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

Usage

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

Arguments

x

<incidence2> object.

...

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

Examples

Run this code
if (requireNamespace("outbreaks", quietly = TRUE)) {
withAutoprint({
    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)
})
}

Run the code above in your browser using DataLab