Skip to contents

This function is used to create COLPROT column in the dataset by renaming any specified columns. It also checks whether the renamed columns contains only ADNI study phase.

Usage

create_col_protocol(.data, phaseVar = NULL, .strict_check = TRUE)

Arguments

.data

Data.frame

phaseVar

Phase column

.strict_check

A Boolean value to apply strict check-in for missing or known values in COLPOROT variables

Value

A data.frame the same as data with appended column of COLPROT.

Examples

if (FALSE) { # \dontrun{
create_col_protocol(
  data = ADNIMERGE2::REGISTRY,
  phaseVar = "Phase",
  .strict_check = TRUE
)
create_col_protocol(
  data = ADNIMERGE2::VISITS,
  phaseVar = "Phase",
  .strict_check = FALSE
)
} # }