R: Split up a string into substrings.

explode {BBmisc} | R 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 = ",")

[Package BBmisc version 1.11 Index]