This function is used to get column names if the provided column name
is existed in the dataset.
Usage
get_cols_name(.data, col_name)
Arguments
- .data
Data.frame
- col_name
Column names
Value
A character vector of column names that are existed in the dataset.
Otherwise return `NA`.
Examples
if (FALSE) { # \dontrun{
get_cols_name(.data = ADNIMERGE2::ADAS_ADNIGO23, col_name = c("Phase", "VISCODE"))
get_cols_name(.data = ADNIMERGE2::ADAS_ADNIGO23, col_name = c("RID", "VISCODE"))
} # }