powered by
If two lists have been interleaved this function will return the lists separated and then concatenated
undo_interleave(x)
a list comprising the interleaved components of x joined into one list
x
a list to be un-interleaved
l <- c("A", "D", "B", "E", "C", "F") undo_interleave(l)
Run the code above in your browser using DataLab