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"))


mark documentation built on May 29, 2024, 5:13 a.m.