split.trim {componentSkeleton}R Documentation

Split and Trim a String

Description

Splits the string 'string' into substrings according to the presence of substring 'split' within them. Trims the resulting substrings using function trim.

Usage

split.trim(string, split, ...)

Arguments

string

The string to be split.

split

The string used for splitting. If 'split' has length 0, 'string' is split into single characters.

...

Additional arguments passed to function 'strsplit' which is used for splitting the string.

Value

A vector containing the substrings.

Author(s)

Kristian Ovaska (kristian.ovaska@helsinki.fi)


[Package componentSkeleton version 2.0.1 Index]