splits: Sync Name Decomposition

View source: R/strings_utils.R

splitsR Documentation

Sync Name Decomposition

Description

Helper that will split text into chunks.

Usage

splits(x, name = TRUE, split = "|")

Arguments

x

string

name

whether to return name only. Default is TRUE.

split

string used for splitting. Default is "|".

Details

'x' is supposed to be a string composed of a 'name' followed by 'split' and ending with a string that does not contain 'split'.

Value

when 'x' is of length 0, "" is returned. Otherwise, the 'name' when 'name' is TRUE or the 'split' non-containing remaining string when FALSE.


gitdemont/IFC documentation built on Feb. 20, 2025, 12:55 a.m.