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)
mtch.data
: A data.frame to be linked with the idsids
: A vector of ids to be linked in mtch.datawarn
: A logical value whether to include warnings with resultsA data.frame with matching id index
data(clinf) data(omicdat) mtx.clms <- colnames(omicdat[[1]]) id_index <- get_id_index(clinf,mtx.clms)
Useful links