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

Description Usage Arguments Value

View source: R/Rdata.R

Description

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

Usage

1
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/sowreap documentation built on Feb. 16, 2021, 12:08 a.m.