insert_str {lazy.symbolic}R Documentation

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

Description

Japanese help file: insert_str_JPH

Usage

insert_str(expr, from, to, body)

Arguments

expr

a string

from

stating position

to

ending position

body

a string to be inserted

Details

substr( 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.20250830 ]