Learn R Programming

splitstackshape (version 1.4.8.1)

NoSep: Split Basic Alphanumeric Strings Which Have No Separators

Description

Used to split strings like "Abc8" into "Abc" and "8".

Usage

NoSep(data, charfirst = TRUE)

Value

A data.frame with two columns, .var and .time_1.

Arguments

data

The vector of strings to be split.

charfirst

Is the string constructed with characters at the start or numbers? Defaults to TRUE.

Author

Ananda Mahto

See Also

Examples

Run this code

x <- paste0("Var", LETTERS[1:3], 1:3)
splitstackshape:::NoSep(x)

y <- paste0(1:3, "Var", LETTERS[1:3])
splitstackshape:::NoSep(y, charfirst = FALSE)

Run the code above in your browser using DataLab