-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
54 lines (39 loc) · 1.23 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
eval = FALSE
)
```
# IncidencePrevalenceReport
<!-- badges: start -->
<!-- badges: end -->
Report generator of the estimates from the IncidencePrevalence package.
## Installation
You can install the development version of IncidencePrevalenceReport like so:
``` r
install.packages("remotes")
remotes::install_github("cbarbozaerasmus/IncidencePrevalenceReport")
```
## Example
The function reportIncidencePrevalence takes a character string for title and author. Then a tibble for incidence and prevalence from IncidencePrevalence package.
```{r }
library(IncidencePrevalenceReport)
library(IncidencePrevalence)
title <- "..."
author <- "..."
prevalence <- prevalence$prevalence_estimates
incidence <- incidence$incidence_estimates
## RUN
reportIncidencePrevalence(title,
author,
prevalence,
incidence)
```
It generates an HTML document in the reports folder.