R/reference.R

Defines functions idb_variables idb_concepts

Documented in idb_concepts idb_variables

#' Print the available concepts to pass to the `idb5()` function.
#'
#' @export
idb_concepts <- function() {

  print(unique(idbr::variables5$Concept))

}

#' View the available variables for use in idbr
#'
#' The first column, "Name", details the variable names that can be passed the function.  The second column, "Label", describes the content of the variables.
#'
#' @export
idb_variables <- function() {

  return(dplyr::tibble(idbr::variables5[,1:2]))

}
walkerke/idbr documentation built on Aug. 25, 2023, 11:20 p.m.