Learn R Programming

splitstackshape (version 1.4.8)

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)

Arguments

data

The vector of strings to be split.

charfirst

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

Value

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

See Also

base::strsplit()

Examples

Run this code
# NOT RUN {
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