View source: R/13-infrastructure.R
| surv_table | R Documentation |
Produces a publication-ready summary table from any survinger result.
Automatically called when objects are printed inside RMarkdown chunks
if knitr is loaded.
surv_table(x, digits = 3, percent = TRUE, ...)
x |
A survinger result object. |
digits |
Integer. Decimal places for prevalence. Default 3. |
percent |
Logical. Display as percentages? Default |
... |
Additional arguments (unused). |
A tibble formatted for display.
surv_lineage_prevalence(), tidy.surv_prevalence()
sim <- surv_simulate(n_regions = 3, n_weeks = 10, seed = 1)
d <- surv_design(sim$sequences, ~ region,
sim$population[c("region", "seq_rate")], sim$population)
prev <- surv_lineage_prevalence(d, "BA.2.86")
surv_table(prev)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.