explode: Split up a string into substrings.

View source: R/explode.R

explodeR Documentation

Split up a string into substrings.

Description

Split up a string into substrings according to a seperator.

Usage

explode(x, sep = " ")

Arguments

x

[character]
Source string.

sep

[character]
Seperator whcih is used to split x into substrings. Default is “ ”.

Value

[vector] Vector of substrings.

Examples

explode("foo bar")
explode("comma,seperated,values", sep = ",")

BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.

Related to explode in BBmisc...