insert: Insert an element into a vector.

Description Usage Arguments Value Examples

View source: R/permutations.R

Description

Insert an element into a vector.

Usage

1
insert(elem, slot, v)

Arguments

elem

element to insert

slot

location of insert

v

vector to insert into

Value

vector with element inserted

Examples

1
2
3
insert(2, 1, 1)
insert(2, 2, 1) 
insert('x', 5, letters) 

mpoly documentation built on March 26, 2020, 7:33 p.m.