Skip to main content

builtin_regexpr

Function builtin_regexpr 

Source
fn builtin_regexpr(
    args: &[RValue],
    named: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Find the first match of a pattern in each element of a character vector.

@param pattern character scalar: regular expression or fixed string @param text character vector to search @param fixed logical: if TRUE, pattern is a literal string @param ignore.case logical: if TRUE, matching is case-insensitive @return integer vector of match positions with “match.length” attribute