Skip to contents

Function to create a common VISCODE2 value in a long format data across ID columns.

Usage

get_common_viscode2(.data, id_cols, col_order, quiet = FALSE)

Arguments

.data

A data.frame

id_cols

ID columns

col_order

Ordered names in a long format data

quiet

A Boolean value to show message. By default, it is quiet = FALSE.

Value

A data.frame with an appended column:

  • COM_VISCODE2: Variable that contains common VISCODE2 value

Examples

if (FALSE) { # \dontrun{
# Please see an example in
vignette(topic = "ADNIMERGE2-PACC", package = "ADNIMERGE2")
} # }