getKeywordPositions: Localise Keywords in Data Frame

View source: R/parse.R

getKeywordPositionsR Documentation

Localise Keywords in Data Frame

Description

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.


KWB-R/kwb.utils documentation built on April 28, 2023, 2:46 p.m.