insert: Inserts an element in a vector

Description Usage Arguments Value

View source: R/insert.R

Description

Inserts an element 'el' into the vector 'vec' in the position 'pos'

Usage

1
insert(vec, el, pos)

Arguments

vec

Vector of interest

el

Element to be inserted

pos

Position to be inserted. Must be lesser or equal to the length of 'vec'

Value

A new vector based on 'vec' with the new element


ziddec/geodesign documentation built on May 29, 2019, 12:20 p.m.