Skip to contents

Select variable of the STCS dataset

Usage

stcs_anonymize(
  stcs,
  vars2rm = c("initials", "dob", "soascaseid", "soasdonorid", "donor_dob",
    "consent_comment")
)

stcs_remove_emptytab(stcs)

stcs_select_organrelevance(
  stcs,
  organ = c("Heart", "Islets", "Kidney", "Liver", "Lung", "Pancreas", "Small bowel")
)

stcs_select_table(stcs, tables)

Arguments

stcs

list. A list of STCS tables

vars2rm

chr. A vector of variables to remove.

organ

chr. A vector of STCS organ names.

tables

chr. A vector of STCS tables name.

Value

a list of modified stcs tables with updated VariableMetaData.

Details

stcs_anonymize(): remove sensitive variables.

stcs_remove_emptytab(): remove empty tables, (if any)

stcs_select_organrelevance(): select variable based on their organ_relevance.

stcs_select_table(): select given the tables.