interleave: Helper function for interleaving two vectors by position

Description Usage Arguments Value

View source: R/resequence.R

Description

Insert elements in different positions for vectors

Usage

1
interleave(vect, pos, elems = NA)

Arguments

vect

Main vector

pos

Positions to be inserted

elems

Elements to be inserted at those positions. By default, these are NAs (missing values).

Value

A vector the length of the sum of vect and pos.


messydates documentation built on Nov. 12, 2021, 5:06 p.m.