View source: R/as.data.frame.R
as.data.frame.incidence2 | R Documentation |
Convert incident object to a data frame
## S3 method for class 'incidence2'
as.data.frame(x, row.names, optional, ...)
x |
incidence2 object. |
row.names |
Not used. |
optional |
Not used. |
... |
Not used. |
as.data.frame for the underlying generic.
dat <- data.frame(
dates = Sys.Date() + 1:100,
names = rep(c("Jo", "John"), 5)
)
dat <- incidence(dat, date_index = "dates", groups = "names")
as.data.frame(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.