Learn R Programming

mpoly (version 1.1.1)

insert: Insert an element into a vector.

Description

Insert an element into a vector.

Usage

insert(elem, slot, v)

Arguments

elem

element to insert

slot

location of insert

v

vector to insert into

Value

vector with element inserted

Examples

Run this code
# NOT RUN {
insert(2, 1, 1)
insert(2, 2, 1) 
insert('x', 5, letters) 
# }

Run the code above in your browser using DataLab