strSplit: Efficient Vectorized String Split

View source: R/utils-string.R

strSplitR Documentation

Efficient Vectorized String Split

Description

This function efficiently splits strings by a vectorized approach.

Usage

strSplit(str, pattern, ncol = 2, index = 1, fixed = TRUE)

Arguments

str

Character vector or list of strings to split

pattern

Character string or regular expression to split str on

ncol

Number of anticipated output values/ columns after splitting

index

Number indicating index of value/ column of interest

fixed

Boolean indicating if pattern is a literal string (TRUE) or regular expression (FALSE)

Value

Character vector of substrings


VEuPathDB/veupathUtils documentation built on Feb. 8, 2025, 12:29 p.m.