Skip to content

Commit

Permalink
Merge pull request #123 from pbchase/add_purpose_other_lookup
Browse files Browse the repository at this point in the history
Add project_purpose_other_research_labels.rda
  • Loading branch information
ChemiKyle authored Jun 22, 2023
2 parents abdfa12 + 6697f43 commit c52391c
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 4 deletions.
15 changes: 13 additions & 2 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"project_life_cycle_descriptions"

#' @title project_status_labels
#' @description A tibble project status IDs and project statuses that reflect their
#' @description A tibble of project status IDs and project statuses that reflect their
#' meaning as used in the `status` column of the `redcap_projects` table
#' @format A data frame with 4 rows and 2 variables:
#' \describe{
Expand All @@ -110,7 +110,7 @@
"project_status_labels"

#' @title project_purpose_labels
#' @description A tibble project purpose IDs and project purposes that reflect their
#' @description A tibble of project purpose IDs and project purposes that reflect their
#' meaning as used in the `purpose` column of the `redcap_projects` table
#' @format A data frame with 5 rows and 2 variables:
#' \describe{
Expand All @@ -119,3 +119,14 @@
#'}
#' @details DETAILS
"project_purpose_labels"

#' @title project_purpose_other_research_labels
#' @description A tibble project purpose other IDs and labels that reflect their
#' meaning as used in the `purpose_other` column of the `redcap_projects` table
#' @format A data frame with 5 rows and 2 variables:
#' \describe{
#' \item{\code{id}}{double primary key}
#' \item{\code{project_purpose_other_research}}{character redcap purpose other research}
#'}
#' @details DETAILS
"project_purpose_other_research_labels"
13 changes: 13 additions & 0 deletions data-raw/redcap_lookup_tables.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ project_purpose_labels <- dplyr::tribble(
# write the data
usethis::use_data(project_purpose_labels, overwrite = T)

project_purpose_other_research_labels <- dplyr::tribble(
~id, ~project_purpose_other_research,
0, "Basic or bench research",
1, "Clinical research study or trial",
2, "Translational research 1 (applying discoveries to the development of trials and studies in humans)",
3, "Translational research 2 (enhancing adoption of research findings and best practices into the community)",
4, "Behavioral or psychosocial research study",
5, "Epidemiology",
6, "Repository (developing a data or specimen repository for future use by investigators)",
7, "Other"
)
usethis::use_data(project_purpose_other_research_labels, overwrite = T)

project_status_labels <- dplyr::tribble(
~id, ~project_status,
0, "Development",
Expand Down
Binary file added data/project_purpose_other_research_labels.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion man/project_purpose_labels.Rd

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

24 changes: 24 additions & 0 deletions man/project_purpose_other_research_labels.Rd

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

2 changes: 1 addition & 1 deletion man/project_status_labels.Rd

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

0 comments on commit c52391c

Please sign in to comment.