dot-cutStr: Cut string to get all variants from given start with min and...

.cutStrR Documentation

Cut string to get all variants from given start with min and max length

Description

This function allows truncating character vector to all variants from given start, with min and optonal max length Used to evaluate argument calls without giving full length of argument

Usage

.cutStr(txt, startFr = 1, minLe = 1, maxLe = NULL, reverse = TRUE)

Arguments

txt

(character) main input, may be length >1

startFr

(interger) where to start

minLe

(interger) minimum length of output

maxLe

(interger) maximum length of output

reverse

(logical) return longest text-fragments at beginning of vector

Value

This function returns a character vector

See Also

used in pasteC; substr

Examples

.cutStr("abcdefg", minLe=2)

wrMisc documentation built on Sept. 11, 2024, 6:10 p.m.