Skip to contents

This function is used to convert specific value into missing values.

Usage

convert_to_missing_value(
  .data,
  col_name = NULL,
  value = "-4",
  missing_char = NA,
  phase = NULL
)

Arguments

.data

Data.frame

col_name

Variable name

value

Specific value that will be considered as missing value, Default: '-4'

missing_char

Character for missing value, Default: NA

phase

Phase-specific value replacement, Default: NULL for all ADNI phases

Value

A data frame with replaced value.

See also

Examples

if (FALSE) { # \dontrun{
convert_to_missing_value(.data = ADNIMERGE2::ADAS_ADNIGO23)
} # }