Skip to contents

This function is used to identify the original ADNI study phase of subject (i.e. when subject enrolled in ADNI study as new-enrollee) based on their RID.

This function is used to create ORIGPROT in the dataset based subject RID.

Usage

original_study_protocol(RID)

create_orig_protocol(.data)

Arguments

RID

Subject RID

.data

Data.frame that contains RID variable

Value

A character vector with the same size as RID with original study protocol (i.e. ADNI study phases).

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

Examples

if (FALSE) { # \dontrun{
RID <- c(0001, 1250, 7015, 10002)
origprot <- original_study_protocol(RID = RID)
origprot
} # }
if (FALSE) { # \dontrun{
example_data <- tibble(RID = c(1, 1000, 3500, 6645, 1000))
create_orig_protocol(data = example_data)
} # }