Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed Feb 27, 2020
1 parent bbf39e5 commit afc4f16
Show file tree
Hide file tree
Showing 10 changed files with 301 additions and 288 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@ product of the R4EPIs project; learn more at

## Installation

<!--
You can install {epikit} from CRAN:

``` r
install.packages("epikit")
```

<details>

<!--
NOTE: everything inside the details tag will be collapsed and effectively
hidden from the user
<summary style='text-decoration: underline'>Click here for alternative installation options</summary>
If there is a bugfix or feature that is not yet on CRAN, you can install it via
the {drat} package:
-->

-->
<summary style='text-decoration: underline'>Click here for alternative
installation options</summary> If there is a bugfix or feature that is
not yet on CRAN, you can install it via the {drat} package:

You can install {epikit} from the R4EPI repository:

Expand All @@ -56,7 +56,7 @@ You can also install the in-development version from GitHub using the
remotes::install_github("R4EPI/epikit")
```

<!-- </details> -->
</details>

-----

Expand All @@ -68,7 +68,7 @@ The {epikit} was primarily designed to house convenience functions for
field epidemiologists to use in tidying their reports. The functions in
{epikit} come in a few categories:

### Give me a break
## Give me a break

If you need a quick function to determine the number of breaks you need
for a color scale, you can use `find_breaks()`. This will always start
Expand All @@ -83,7 +83,7 @@ find_breaks(100, snap = 20, ceiling = TRUE) # include the highest number
#> [1] 1 41 81 100
```

### Table modification
## Table modification

These functions all modify the appearance of a table displayed in a
report and work best with the `knitr::kable()` function.
Expand Down Expand Up @@ -139,7 +139,7 @@ df %>%
| 5 | 0.83 | 3.14 | 2 | 0.33 | 6.28 |
| 6 | 1.00 | 3.14 | 1 | 0.17 | 6.28 |

### Quick proportions with conficence intervals
## Quick proportions with conficence intervals

There are three functions that will provide quick statistics for
different rates based on binomial estimates of proportions from
Expand Down Expand Up @@ -177,12 +177,12 @@ case_fatality_rate_df(ebola_sim_clean$linelist,
#> # A tibble: 3 x 5
#> gender deaths population cfr ci
#> <fct> <int> <int> <dbl> <chr>
#> 1 f 1291 2934 44.0 (42.21--45.80)
#> 2 m 1273 2895 44.0 (42.17--45.79)
#> 3 Total 2564 5829 44.0 (42.72--45.26)
#> 1 f 1291 2280 56.6 (54.58--58.64)
#> 2 m 1273 2247 56.7 (54.59--58.69)
#> 3 Total 2564 4527 56.6 (55.19--58.08)
```

### Inline functions
## Inline functions

The inline functions make it easier to print estimates with confidence
intervals in reports with the correct number of digits.
Expand All @@ -205,7 +205,7 @@ refer to `estimate`, `lower`, and `upper` column positions or names.
write: `fmt_count(ebola_sim_clean$linelist, gender == "f", hospital
== "Rokupa Hospital")` and it would produce: 210 (3.6%)

### Confidence interval manipulation
## Confidence interval manipulation

The confidence interval manipulation functions take in a data frame and
combine their confidence intervals into a single character string much
Expand Down Expand Up @@ -251,7 +251,7 @@ merge_ci_df(df, e = 2)
#> 5 am 0.155814790 (-0.61--0.93)
```

### Age categories
## Age categories

A couple of functions are dedicated to constructing age categories and
partitioning them into separate chunks.
Expand Down
237 changes: 113 additions & 124 deletions docs/articles/intro.html

Large diffs are not rendered by default.

283 changes: 142 additions & 141 deletions docs/index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion docs/reference/age_categories.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 13 additions & 4 deletions docs/reference/attack_rate.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions docs/reference/fmt_count.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions docs/reference/rename_redundant.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions docs/reference/unite_ci.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions man/rmdhunks/introduction.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ This is a product of the R4EPIs project; learn more at <https://r4epis.netlify.c

## Installation

<!--
You can install {epikit} from CRAN:

``` r
Expand All @@ -14,11 +13,11 @@ install.packages("epikit")
<!--
NOTE: everything inside the details tag will be collapsed and effectively
hidden from the user
-->
<summary style='text-decoration: underline'>Click here for alternative installation options</summary>
If there is a bugfix or feature that is not yet on CRAN, you can install it via
the {drat} package:

-->

You can install {epikit} from the R4EPI repository:

Expand All @@ -36,7 +35,7 @@ package (but there's no guarantee that it will be stable):
remotes::install_github("R4EPI/epikit")
```

<!-- </details> -->
</details>

-------

Expand Down

0 comments on commit afc4f16

Please sign in to comment.