Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: update from Rachel's comments #558

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/methods-epi_df.R
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ group_modify.epi_df <- function(.data, .f, ..., .keep = FALSE) {

#' Complete epi_df
#'
#' A `tidyr::complete()` analogue for `epi_df`` objects. This function
#' A `tidyr::complete()` analogue for `epi_df` objects. This function
#' can be used, for example, to add rows for missing combinations
#' of `geo_value` and `time_value`, filling other columns with `NA`s.
#' See the examples for usage details.
Expand Down
4 changes: 3 additions & 1 deletion man/complete.epi_df.Rd

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

10 changes: 5 additions & 5 deletions vignettes/epiprocess.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ edf %>%
```

We can compute the 7 day moving average of the confirmed daily cases for each
geo_value by using the `epi_slide_mean()` function. For a more in-depth guide to
`geo_value` by using the `epi_slide_mean()` function. For a more in-depth guide to
sliding, see `vignette("epi_df")`.

```{r}
Expand All @@ -96,15 +96,15 @@ edf %>%
```

We can compute the growth rate of the confirmed cumulative cases for each
geo_value. For a more in-depth guide to growth rates, see `vignette("growth_rate")`.
`geo_value`. For a more in-depth guide to growth rates, see `vignette("growth_rate")`.

```{r}
edf %>%
group_by(geo_value) %>%
mutate(cases_growth = growth_rate(x = time_value, y = cases_cumulative, method = "rel_change", h = 7))
```

Detect outliers in daily reported cases for each geo_value. For a more in-depth
Detect outliers in daily reported cases for each `geo_value`. For a more in-depth
guide to outlier detection, see `vignette("outliers")`.

```{r message=FALSE}
Expand All @@ -114,8 +114,8 @@ edf %>%
ungroup()
```

Add a column to the epi_df object with the daily deaths for each geo_value and
compute the correlations between cases and deaths for each geo_value. For a more
Add a column to the epi_df object with the daily deaths for each `geo_value` and
compute the correlations between cases and deaths for each `geo_value`. For a more
in-depth guide to correlations, see `vignette("correlation")`.

```{r}
Expand Down
Loading