splitSub: Cuts part of delimited text analogous to bash cut

View source: R/general.purpuse.utilities.R

splitSubR Documentation

Cuts part of delimited text analogous to bash cut

Description

Cuts part of delimited text analogous to bash cut

Usage

splitSub(x, del, inx, fixed = TRUE, collapse = TRUE, simplify = TRUE)

Arguments

x

character vector to cut from

del

delimiter

inx

indexes of items to return

fixed

logical, whether del is fixed (to be passed to strsplit)

collapse

logical, whether to collapse selected items with same delimeter.

simplify

logical, whether output should be simplified (to be passed to sapply).

Value

character vector or

Examples

splitSub(c('a,b','d,c'),',',2)

iaaka/visutils documentation built on Jan. 17, 2025, 11:29 p.m.