NoSep: Split Basic Alphanumeric Strings Which Have No Separators

Description Usage Arguments Value Note Author(s) See Also Examples

Description

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

Usage

1
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

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

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

splitstackshape documentation built on May 1, 2019, 8:20 p.m.