Helper function: selects pattern contained in different lines of a string vector (e.g. imported using readLines())

patternSelect(pattern, data)

Arguments

pattern

index of row to be split (valid values: 1-3)

data

vector with strings

Value

data.frame with columns lines (indicating the lines where pattern was found and txt (string contained in that lines)