Skip to contents

Functions to keep or filter out records that are collected in/associated with TEAM-ADNI study phase.

keep_teamadni() is used to keep/filter records that are associated with TEAM-ADNI study phase.

filter_out_teamadni() is used to exclude/remove records that are associated with TEAM-ADNI study phase.

Usage

keep_teamadni(.data, phase_cols)

filter_out_teamadni(.data, phase_cols)

Arguments

.data

A data.frame

phase_cols

A character vector of column(s) that contains ADNI study phase identifier. For examples, similar to ORIGPROT or COLPROT columns.

Value

A data.frame

Examples

if (FALSE) { # \dontrun{
# To keep TEAM-ADNI study phase records from `REGISTRY` or `DXSUM` data
keep_teamadni(
  .data = ADNIMERGE2::REGISTRY,
  phase_cols = "COLPROT"
)
keep_teamadni(
  .data = ADNIMERGE2::DXSUM,
  phase_cols = "COLPROT"
)
} # }
if (FALSE) { # \dontrun{
# To keep any records for those who started joined ADNI study
# since the start of TEAM-ADNI study phase
filter_out_teamadni(
  .data = ADNIMERGE2::REGISTRY,
  phase_cols = "COLPROT"
)
filter_out_teamadni(
  .data = ADNIMERGE2::DXSUM,
  phase_cols = "COLPROT"
)
} # }