interleave: Interleave two or more vectors

View source: R/interleave.R

interleaveR Documentation

Interleave two or more vectors

Description

Interleave two or more vectors

Usage

interleave(x1, x2, ..., pad = TRUE, padLast = TRUE)

Arguments

x1

a vector or list

x2

a vector or list

...

Optional. More vector(s) or list(s)

pad

logical: Whether to add NA to shorter object(s). Default TRUE.

padLast

logical: When pad is set to TRUE, whether to add NA at the end (TRUE) or the beginning (FALSE). When pad is set to FALSE, whether to cut at the end (TRUE) or beginning (FALSE) Default TRUE.

Value

same class as input


salix-d/salixUtils documentation built on Aug. 14, 2024, 7:11 a.m.