A context contains study design specific information about a variable.

Slots

short_label

a short_label

long_label

a long_label

description

a description

derivation

a derivation

purpose

a purpose

security_type

security information

Examples

context(
  short_label   = "age_cat4",
  long_label    = "Age categorical with four levels",
  description   = "The age categories are ... They were chosen by ...",
  derivation    = "This variable was derived from the `age` variable",
  purpose       = purpose(study_role = "covariate", tags = "demographics"),
  security_type = "HIPAA"
)
#> An object of class "context"
#> Slot "short_label":
#> [1] "age_cat4"
#> 
#> Slot "long_label":
#> [1] "Age categorical with four levels"
#> 
#> Slot "description":
#> [1] "The age categories are ... They were chosen by ..."
#> 
#> Slot "derivation":
#> [1] "This variable was derived from the `age` variable"
#> 
#> Slot "purpose":
#> An object of class "purpose"
#> Slot "study_role":
#> [1] "covariate"
#> 
#> Slot "tags":
#> [1] "demographics"
#> 
#> 
#> Slot "security_type":
#> [1] "HIPAA"
#>