View source: R/cb_set_columns.R
cb_set_columns | R Documentation |
Updates a cohort by applying a new query.
cb_set_columns(cohort, column_ids, keep_columns = TRUE)
cohort |
A cohort object. (Required)
See constructor function |
column_ids |
Vector of phenotype IDs to be added as columns in the participant table. |
keep_columns |
If True, pre-existing columns are retained and newly supplied columns are added. Otherwise, pre-exisitng columns are overwritten. (Default: TRUE) |
The updated cohort object.
## Not run:
my_cohort <- cb_load_cohort(cohort_id = "612f37a57673ed0ddeaf1333", cb_version = "v2")
my_cohort <- cb_set_columns(my_cohort, c(1, 99, 38), keep_columns = F)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.