undo_interleave: Undoes interleaving of lists

View source: R/undo_interleave.R

undo_interleaveR Documentation

Undoes interleaving of lists

Description

If two lists have been interleaved this function will return the lists separated and then concatenated

Usage

undo_interleave(x)

Arguments

x

a list to be un-interleaved

Value

a list comprising the interleaved components of x joined into one list

Examples

l <- c("A", "D", "B", "E", "C", "F")
undo_interleave(l)

gpilgrim2670/SwimmeR documentation built on March 26, 2023, 5:05 p.m.