strsplit2: strsplit2

strsplit2R Documentation

strsplit2

Description

Strsplit when there are two layers of separators (sep1, sep2) and one needs to extract a collapsed vector of subitem j for all items i.

Takes in a character vector and outputs a list of "separated" items

Usage

strsplit2(x, sep1 = ",", sep2 = " ", j = 1)

Arguments

x

character vector

sep1

character specifying first level separator (=',')

sep2

character specifying second level separator (=' ')

j

integer specifying which subitem to keep (=1)

Value

vector of values for subitem j

Author(s)

Marcin Imielinski


mskilab/skitools documentation built on Aug. 31, 2023, 1:13 p.m.