insert | R Documentation |
Insert an element into a vector.
insert(elem, slot, v)
elem |
element to insert |
slot |
location of insert |
v |
vector to insert into |
vector with element inserted
insert(2, 1, 1)
insert(2, 2, 1)
insert('x', 5, letters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.