insert_str {lazy.symbolic}R Documentation

Insert string between substr(expr,1,from-1) and substr(expr,to+1)

Description

Insert string between substr(expr,1,from-1) and substr(expr,to+1)

Usage

insert_str(expr, from, to, body)

Arguments

expr

a string

from

stating position

to

ending position

body

a string to be inserted

Details

sibstr( expr,from,to ) will always be removed/replaced.

Value

a string

Examples

insert_str( paste(1:9,collapse=""), 4,6, "")
insert_str( paste(1:9,collapse=""), 4,6, "a")
insert_str( paste(1:9,collapse=""), 4,6, "abcdef")


[Package lazy.symbolic version 1.0.0.20250803 ]