insert: Insert

View source: R/insert.R

insertR Documentation

Insert

Description

Insert values at a position

Usage

insert(x, positions, values)

Arguments

x

A vector of values

positions

Integer of positions of x to insert values

values

A vector of values to insert into x

Value

A vector with the intended values inserted

Examples

insert(letters[1:5], c(2, 4), c("X", "Y"))


jmbarbone/jordan documentation built on April 1, 2024, 7:46 p.m.