Skip to content

Commit

Permalink
feat(hake): Adds data object for Big hake
Browse files Browse the repository at this point in the history
called hake.
The data was added programatically using usethis, which is now included
as a suggested dependency.
  • Loading branch information
kellijohnson-NOAA committed Sep 30, 2024
1 parent 1641eba commit 8004682
Show file tree
Hide file tree
Showing 7 changed files with 264,820 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
^\.Rproj\.user$
^\.github$
^LICENSE\.md$
^data-raw$
2 changes: 2 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ Imports:
stringr,
tidyr,
utils
Suggests:
usethis
Remotes:
nmfs-fish-tools/nmfspalette
42 changes: 42 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#' Example `dat` object using Big Hake
#'
#' A subset of data from the World Health Organization Global Tuberculosis
#' Report ...
#'
#' @format ## `who`
#' A data frame with 26,4713 rows and 31 columns:
#' \describe{
#' \item{label} {}
#' \item{estimate} {}
#' \item{year} {}
#' \item{fleet} {}
#' \item{sex} {}
#' \item{area} {}
#' \item{growth_pattern} {}
#' \item{module_name} {}
#' \item{uncertainty_label} {}
#' \item{uncertainty} {}
#' \item{time} {}
#' \item{season} {}
#' \item{subseason} {}
#' \item{age} {}
#' \item{len_bins} {}
#' \item{initial} {}
#' \item{likelihood} {}
#' \item{gradient} {}
#' \item{estimated} {}
#' \item{bio_pattern} {}
#' \item{birthseas} {}
#' \item{settlement} {}
#' \item{morph} {}
#' \item{type} {}
#' \item{factor} {}
#' \item{platoon} {}
#' \item{month} {}
#' \item{sexes} {}
#' \item{part} {}
#' \item{bin} {}
#' \item{kind} {}
#' }
#' @source <https://www.who.int/teams/global-tuberculosis-programme/data>
"hake"
7 changes: 7 additions & 0 deletions data-raw/hake.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Big_Hake_std_res_2023.csv was downloaded from google drive
# and moved to the repository data-raw folder
hake <- utils::read.csv(
file.path("data-raw", "hake.csv")
)

usethis::use_data(hake, overwrite = TRUE)
264,714 changes: 264,714 additions & 0 deletions data-raw/hake.csv

Large diffs are not rendered by default.

Binary file added data/hake.rda
Binary file not shown.
54 changes: 54 additions & 0 deletions man/hake.Rd

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

0 comments on commit 8004682

Please sign in to comment.