matchIndex {handyFunctions} | R Documentation |
Return the index of source vector matched with query vector
Description
Return the index of source vector matched with query vector
Usage
matchIndex(SourceInfo, queryInfo, queryType = TRUE)
Arguments
SourceInfo |
the source vector |
queryInfo |
the query vector |
queryType |
logical If set it to accurate match (default: TRUE) |
Value
the index of source vector matched with query vector
Examples
library(handyFunctions)
data(grade)
matchIndex(grade[, "name"], c("Ming Li", "Bang Wei"))
[Package handyFunctions version 0.1.0 Index]