insert_vector_entry {oeli} | R Documentation |
Insert entry in vector
Description
This function inserts a value into a vector.
Usage
insert_vector_entry(v, x, p)
Arguments
v |
A |
x |
A single value (i.e., an |
p |
An
Can also be a |
Value
A vector
.
Examples
v <- 1:3
x <- 0
insert_vector_entry(v, x, 0)
insert_vector_entry(v, x, 1)
insert_vector_entry(v, x, 2)
insert_vector_entry(v, x, 3)
### also multiple positions
insert_vector_entry(v, x, 0:3)
### also trivial case
insert_vector_entry(integer(), integer(), integer())
[Package oeli version 0.5.2 Index]