strshift: grab the first (or z'th) element(s) of x after splitting it...

View source: R/strshift.R

strshiftR Documentation

grab the first (or z'th) element(s) of x after splitting it on y unlike Perl or C versions, this function does not modify x behind the scenes

Description

grab the first (or z'th) element(s) of x after splitting it on y unlike Perl or C versions, this function does not modify x behind the scenes

Usage

strshift(x, y = " ", z = 1)

Arguments

x

a string

y

a split character (default is " ")

z

which element(s) to retrieve (default is 1)

Value

the element(s) [z] produced by splitting basename(x) on y


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