strunshift: shove new element(s) x onto a (possibly splittable on y)...

View source: R/strunshift.R

strunshiftR Documentation

shove new element(s) x onto a (possibly splittable on y) string x after [z] unlike Perl or C versions, this function does not modify w behind the scenes

Description

shove new element(s) x onto a (possibly splittable on y) string x after [z] unlike Perl or C versions, this function does not modify w behind the scenes

Usage

strunshift(w, x, y = " ", z = 0)

Arguments

w

a string

x

new element(s) to shove onto w

y

a split character (default is " ")

z

after which element is x appended (default is 0, i.e. prepend x)

Value

the string produced by shoving x onto str2vec(w, y) after [z]


ttriche/Rscripts documentation built on Sept. 14, 2023, 2:52 a.m.