Skip to main content

builtin_substr

Function builtin_substr 

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

Extract substrings from character strings.

Vectorized over x, start, and stop with recycling.

@param x character vector to extract from @param start integer vector of starting positions (1-indexed) @param stop integer vector of ending positions (inclusive) @return character vector containing the substrings