queryingInfo {handyFunctions} | R Documentation |
return index of x data.frame with the given vector/list or ycol in data.frame (if set the accurate match or not)
Description
return index of x data.frame with the given vector/list or ycol in data.frame (if set the accurate match or not)
Usage
queryingInfo(SourceData, sourceCol, queryCol, queryInfo, queryType = TRUE)
Arguments
SourceData |
the source data.frame which you want to query |
sourceCol |
the col names or index of query field in source data.frame |
queryCol |
the col names or index of return field in source data.frame |
queryInfo |
vector/list the query info |
queryType |
logical if set it to accurate match (default: TRUE) |
Value
a vector in query field matched with query info in source data
Examples
library(handyFunctions)
data(grade)
queryingInfo(grade, "name", "chinese", c("Ming Li", "Bang Wei"))
[Package handyFunctions version 0.1.0 Index]