get_id_index function

For each row of the data.frame main.data, find the index of the matching element in vector ids

For each row of the data.frame main.data, find the index of the matching element in vector ids

get_id_index(mtch.data, ids, warn = TRUE)

Arguments

  • mtch.data: A data.frame to be linked with the ids
  • ids: A vector of ids to be linked in mtch.data
  • warn: A logical value whether to include warnings with results

Returns

A data.frame with matching id index

Examples

data(clinf) data(omicdat) mtx.clms <- colnames(omicdat[[1]]) id_index <- get_id_index(clinf,mtx.clms)