View source: R/print.linelist.R
print.linelist | R Documentation |
This function prints linelist objects.
## S3 method for class 'linelist'
print(x, ...)
x |
a |
... |
further arguments to be passed to 'print' |
Invisibly returns the object.
if (require(outbreaks)) {
## dataset we'll create a linelist from
measles_hagelloch_1861
## create linelist
x <- make_linelist(measles_hagelloch_1861,
id = "case_ID",
date_onset = "date_of_prodrome",
age = "age",
gender = "gender"
)
## print object - using only the first few entries
head(x)
# version with a tibble
if (require(tibble) && require(magrittr)) {
measles_hagelloch_1861 %>%
tibble() %>%
make_linelist(
id = "case_ID",
date_onset = "date_of_prodrome",
age = "age",
gender = "gender"
)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.