| str_before_nth {filesstrings} | R Documentation |
nth occurrence of pattern.str_before_nth(string, pattern, n) before_nth(string, pattern, n) str_before_first(string, pattern) before_first(string, pattern) str_before_last(string, pattern) before_last(string, pattern)
string |
A character vector. |
pattern |
The pattern to look for. The default interpretation is a regular expression, as described in stringi::stringi-search-regex. To match a without regular expression (i.e. as a human would), use
coll(). For details see |
n |
A vector of integerish values. Must be either length 1 or
have length equal to the length of |