dictionary.annotate.harmo_status: Set variable annotation with Harmonization Status term

Description Usage Arguments Value Examples

View source: R/dictionary.annotations.R

Description

Apply or remove an harmonization status annotation from a set of variables. The harmonization status is described by the "status" vocabulary in the "Mlstr_harmo" taxonomy.

Usage

1
dictionary.annotate.harmo_status(tibble, variables = NULL, status)

Arguments

tibble

Tibble to be annotated.

variables

A character vector of variable names to be annotated. If NULL or empty, all the columns of the tibble will be annotated.

status

The harmonization status to apply: 'complete', 'undetermined', 'impossible' or 'na'. If NULL, the annotation will be deleted.

Value

The annotated tibble

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
cqx <- opal.table_get(o, "CPTP", "Cag_coreqx")
cqx <- dictionary.annotate.harmo_status(cqx, 
  variables = c("A_SDC_EDU_LEVEL", "A_SDC_EDU_LEVEL_AGE"), 
  status = "complete")
opal.logout(o)

## End(Not run)

opalr documentation built on Oct. 26, 2021, 5:06 p.m.