Skip to content

Commit

Permalink
use cases_deaths_subset instead of covid_case_death_rates
Browse files Browse the repository at this point in the history
  • Loading branch information
nmdefries committed Sep 17, 2024
1 parent d88d44d commit 779ec2a
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 142 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export(autoplot)
export(cases_deaths_subset)
export(clone)
export(complete)
export(covid_case_death_rates)
export(covid_incidence_county_subset)
export(covid_incidence_outliers)
export(detect_outlr)
Expand Down
18 changes: 0 additions & 18 deletions R/reexports.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,24 +151,6 @@ delayedAssign("covid_incidence_outliers", epidatasets::covid_incidence_outliers)
#' @export
delayedAssign("jhu_confirmed_cumulative_num", epidatasets::jhu_confirmed_cumulative_num)

#' @inherit epidatasets::covid_case_death_rates description source references title
#' @inheritSection epidatasets::covid_case_death_rates Data dictionary
#' @examples
#' # Since this is a re-exported dataset, it cannot be loaded using
#' # the `data()` function. `data()` looks for a file of the same name
#' # in the `data/` directory, which doesn't exist in this package.
#' # works
#' epiprocess::covid_case_death_rates
#'
#' # works
#' library(epiprocess)
#' covid_case_death_rates
#'
#' # fails
#' data(covid_case_death_rates, package = "epiprocess")
#' @export
delayedAssign("covid_case_death_rates", epidatasets::covid_case_death_rates)

#' @inherit epidatasets::archive_cases_dv_subset description source references title
#' @inheritSection epidatasets::archive_cases_dv_subset Data dictionary
#' @examples
Expand Down
20 changes: 10 additions & 10 deletions man/archive_cases_dv_subset.Rd

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

20 changes: 10 additions & 10 deletions man/cases_deaths_subset.Rd

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

71 changes: 0 additions & 71 deletions man/covid_case_death_rates.Rd

This file was deleted.

20 changes: 10 additions & 10 deletions man/covid_incidence_county_subset.Rd

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

20 changes: 10 additions & 10 deletions man/covid_incidence_outliers.Rd

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

20 changes: 10 additions & 10 deletions man/jhu_confirmed_cumulative_num.Rd

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

4 changes: 2 additions & 2 deletions vignettes/correlation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ library(dplyr)

The data is included in this package (via the [`epidatasets` package](https://cmu-delphi.github.io/epidatasets/)) and can be loaded with:
```{r}
x <- covid_case_death_rates %>%
select(geo_value, time_value, case_rate, death_rate) %>%
x <- cases_deaths_subset %>%
select(geo_value, time_value, case_rate = case_rate_7d_av, death_rate = death_rate_7d_av) %>%
arrange(geo_value, time_value)
```

Expand Down

0 comments on commit 779ec2a

Please sign in to comment.