Localise Keywords in Data Frame
Usage
getKeywordPositions(dataFrame, keywords, asDataFrame = TRUE)
Arguments
- dataFrame
data frame or matrix in which to search for given keywords
- keywords
(list of) keywords to be looked for in data frame
- asDataFrame
if TRUE (default), a data frame is returned, otherwise a
matrix
Value
data frame (if asDataFrame = TRUE) or matrix with one column
per keyword that was given in keywords. The first row contains the
row numbers and the second row contains the column numbers, respectively,
of the fields in dataFrame in which the corresponding keywords were
found.