NoSep {splitstackshape}R Documentation

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.

Note

This is a helper function for the Stacked() and Reshape() functions.

Author(s)

Ananda Mahto

See Also

base::strsplit()

Examples


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

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


[Package splitstackshape version 1.4.8 Index]