Skip to content

Commit

Permalink
docs: updated the roxygen docs on the datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjohnst86 committed May 30, 2024
1 parent b53e9b6 commit 9a68db6
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions R/ukbAid-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,18 @@
## usethis namespace: end
NULL


#' All variables found within the UK Biobank
#'
#' A dataframe that contains the IDs and variable descriptions for the variables
#' contained in the Steno DARE project on the UKB RAP.
#'
#' @format A data frame with 7663 rows and 3 variables:
#' \describe{
#' \item{id}{The ID for the "field" (or variable). Used to connect to the `rap_variables.csv` file.}
#' \item{ukb_variable_description}{Brief description of the variable.}
#' \item{link}{URL to the description of the variable.}
#' }
#' @source \url{https://biobank.ndph.ox.ac.uk/~bbdatan/Data_Dictionary_Showcase.tsv}
"project_variables"

#' Variable names that are specific to the RAP
#'
#' A dataframe that contains the field IDs and variable names that are specific
#' A [tibble::tibble()] that contains the field (variable) IDs and titles that are specific
#' to the RAP database and used to select from it.
#'
#' @format A data frame with 22,355 rows and 3 variables:
#' @format A data frame with 27,929 rows and 2 variables:
#' \describe{
#' \item{id}{The ID for the "field" (or variable). Used when connecting with the `project_variables.csv` file.}
#' \item{field_id}{The RAP ID for the "field" (or variable). "Instance" is the
#' \item{field_id}{The ID for the "field" (or variable) within the RAP UK Biobank dataset,
#' which represents the column in the dataset.}
#' \item{field_title}{The RAP variable title for the "field" (or variable). "Instance" is the
#' time point and "Array" is how the variable was split up with e.g. some
#' questionnaire variables.}
#' \item{rap_variable_name}{The name of the variable in the RAP database.}
#' questionnaire variables. This is the human readable format.}
#' }
"rap_variables"

Expand Down

0 comments on commit 9a68db6

Please sign in to comment.