Learn R Programming

incidence2 (version 0.2.2)

as_tibble: Convert incident2 object to a tibble

Description

Convert incident2 object to a tibble

Usage

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

Arguments

x

An incidence() object.

...

Not used.

Examples

Run this code
# NOT RUN {
dat <- data.frame(dates = Sys.Date() + 1:100,
                  names = rep(c("Jo", "John"), 5))

dat <- incidence(dat, date_index = dates, groups = names)
as_tibble(dat)

# }

Run the code above in your browser using DataLab