Skip to contents

Retrieves the identifier columns for a given study and release version.

In addition to the main get_id_cols() function, there are two study-specific variations:

  • get_id_cols_abcd(): for the ABCD study.

  • get_id_cols_hbcd(): for the HBCD study.

They have the same arguments as the get_id_cols() function, except that the study argument is set to the respective study by default, and should not be set by the user.

Usage

get_id_cols(study, release = "latest")

get_id_cols_abcd(...)

get_id_cols_hbcd(...)

Arguments

study

character. The study name. One of "abcd" or "hbcd".

release

character. Release version (Default: "latest").

...

Additional arguments passed to the underlying get_id_cols() function.

Value

character vector with the identifier columns.

Examples

get_id_cols("abcd")
#> Error in check_pkgs(pkgs = list(NBDCtoolsData = list(remote = "nbdc-datahub/NBDCtoolsData")),     abort_msg = "NBDCtoolsData package is not installed", quiet = quiet): NBDCtoolsData package is not installed
#>  `NBDCtoolsData`
#>  Please install the missing packages with:
#> 
#> renv::install(c("nbdc-datahub/NBDCtoolsData"))

get_id_cols("hbcd")
#> Error in check_pkgs(pkgs = list(NBDCtoolsData = list(remote = "nbdc-datahub/NBDCtoolsData")),     abort_msg = "NBDCtoolsData package is not installed", quiet = quiet): NBDCtoolsData package is not installed
#>  `NBDCtoolsData`
#>  Please install the missing packages with:
#> 
#> renv::install(c("nbdc-datahub/NBDCtoolsData"))

get_id_cols_abcd(release = "6.0")
#> Error in check_pkgs(pkgs = list(NBDCtoolsData = list(remote = "nbdc-datahub/NBDCtoolsData")),     abort_msg = "NBDCtoolsData package is not installed", quiet = quiet): NBDCtoolsData package is not installed
#>  `NBDCtoolsData`
#>  Please install the missing packages with:
#> 
#> renv::install(c("nbdc-datahub/NBDCtoolsData"))

get_id_cols_hbcd(release = "1.0")
#> Error in check_pkgs(pkgs = list(NBDCtoolsData = list(remote = "nbdc-datahub/NBDCtoolsData")),     abort_msg = "NBDCtoolsData package is not installed", quiet = quiet): NBDCtoolsData package is not installed
#>  `NBDCtoolsData`
#>  Please install the missing packages with:
#> 
#> renv::install(c("nbdc-datahub/NBDCtoolsData"))