as_tibble.incidence2 | R Documentation |
Coerce to a tibble
## S3 method for class 'incidence2'
as_tibble(x, ..., .rows, .name_repair, rownames)
x |
An incidence2 object. |
... |
Unused, for extensibility. |
.rows |
The number of rows, useful to create a 0-column tibble or just as an additional check. |
.name_repair |
Treatment of problematic column names:
This argument is passed on as |
rownames |
How to treat existing row names of a data frame or matrix:
Read more in rownames. |
A tibble of the original input but with no additional attributes.
if (requireNamespace("outbreaks", quietly = TRUE)) {
data(ebola_sim_clean, package = "outbreaks")
dat <- ebola_sim_clean$linelist
x <- incidence(dat, "date_of_onset")
as_tibble(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.