Substr: Return sub-strings indicated by positions or produce a string...

View source: R/Rdata.R

SubstrR Documentation

Return sub-strings indicated by positions or produce a string by substituting those strings with replacements

Description

The function behaves similar to sprintf, except that character sequences to be substituted are indicated by name.

Usage

Substr(s, start, length, replacement)

Arguments

s

template string

start

vector of start positions of substrings to substitute

length

vector of lengthes of substrings to substitute

replacement

vector of strings to subsitute. If missing, Substr returns sub-strings indicated by start/length

Value

character vector containing extracted sub-strings


sboehringer/package documentation built on Jan. 12, 2023, 6:33 a.m.