-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
149 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#' @title Fictional counts of malaria cases from Mozambique in 2019 | ||
#' | ||
#' @description | ||
#' Fictional counts of malaria cases from Mozambique in 2019 | ||
#' | ||
#' @details | ||
#' This is fictional aggregate data with counts by date and region. | ||
#' | ||
#' @source This data is fictional based on data from Mozambique. | ||
#' | ||
#' The original dataset district_weekly_count_data.xlsx. | ||
#' | ||
#' This is version 1.0. | ||
#' | ||
#' This dataset is English. | ||
#' | ||
#' This dataset is licensed under [CC by-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) | ||
#' | ||
#' @format A data frame with 9628 rows and 4 columns | ||
#' | ||
#' @docType data | ||
"district_weekly_count_data" | ||
|
||
|
||
#' @title Fictional counts of malaria cases from Mozambique in 2019 | ||
#' | ||
#' @description | ||
#' Fictional counts of malaria cases from Mozambique in 2019 | ||
#' | ||
#' @details | ||
#' This is fictional aggregate data with counts by date, region and age group. | ||
#' | ||
#' @source This data is fictional based on data from Mozambique. It has been adapted | ||
#' from \link{district_weekly_count_data}. | ||
#' | ||
#' The original dataset malaria_facility_count_Data.rds. | ||
#' | ||
#' This is version 1.0. | ||
#' | ||
#' This dataset is English. | ||
#' | ||
#' This dataset is licensed under [CC by-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) | ||
#' | ||
#' @format A data frame with 3038 rows and 10 columns | ||
#' | ||
#' @docType data | ||
"malaria_facility_count_data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## code to prepare `district_weekly_count_data` dataset goes here | ||
|
||
# Define the path to the Excel file in inst/extdata | ||
file_path <- system.file("extdata", "district_weekly_count_data.xlsx", package = "appliedepidata") | ||
|
||
# Read in the rds file using rio | ||
district_weekly_count_data <- rio::import(file_path) | ||
|
||
# process data as needed (e.g. cleaning, recoding, restructuring) | ||
|
||
|
||
# Save the data as an internal .rda file in the data/ directory | ||
usethis::use_data(district_weekly_count_data, overwrite = TRUE) | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## code to prepare `malaria_facility_count_data` dataset goes here | ||
|
||
# Define the path to the Excel file in inst/extdata | ||
file_path <- system.file("extdata", "malaria_facility_count_data.rds", package = "appliedepidata") | ||
|
||
# Read in the rds file using rio | ||
malaria_facility_count_data <- rio::import(file_path) | ||
|
||
# process data as needed (e.g. cleaning, recoding, restructuring) | ||
|
||
## There is no reproducible code, however this is based off district_weekly_count_data.xlsx | ||
|
||
# Save the data as an internal .rda file in the data/ directory | ||
usethis::use_data(malaria_facility_count_data, overwrite = TRUE) | ||
|
||
|
||
|
||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.