Helper function: Cut string by pattern
cutStringByPattern(pattern, endString = TRUE, txt)
pattern | pattern to be searched for in string |
---|---|
endString | if TRUE the string after the search pattern is returned, if
FALSE from the beginning until the search pattern (only evaluated if pattern
|
txt | string or vector of strings to be searched for in string |
Returns only partial string(s) depending on the cut pattern and until the end of each string
### Path to your vs2dh model directory string = "A B C D" pattern = "B " cutStringByPattern(pattern=pattern, txt=string)#> txt Line parNames #> 1 A B C D 1 C D