cutStringByPattern: Helper function: Cut string by pattern

Description Usage Arguments Value Examples

Description

Helper function: Cut string by pattern

Usage

1
cutStringByPattern(pattern, endString = TRUE, txt)

Arguments

pattern

pattern to be searched for in string txt; if pattern is a vector of two the string is cut between pattern[1] and pattern[2]

endString

if TRUE the string after the search pattern is returned, if FALSE from the beginning until the search pattern (only evaluated if pattern pattern is vector of length 1!)

txt

string or vector of strings to be searched for in string

Value

Returns only partial string(s) depending on the cut pattern and until the end of each string

Examples

1
2
3
4
### Path to your vs2dh model directory
string = "A B C D"
pattern = "B "
cutStringByPattern(pattern=pattern, txt=string)

KWB-R/kwb.vs2dh documentation built on Sept. 10, 2019, 12:20 p.m.