insert: Insert Elements in Vector

Description Usage Arguments Details Value Examples

View source: R/utils.R

Description

Insert a vector in another vector.

Usage

1
insert(x, pos, what)

Arguments

x

A vector (or a list).

pos

Integer. Insert after which elements?

what

Vector of elements to insert.

Details

To insert an element at the beginning use a pos value of 0.

Duplicated positions are not allowed.

Value

A vector.

Examples

1
heemod:::insert(letters, c(0, 5, 26), c("xxx", "yyy"))

pierucci/heemod documentation built on July 15, 2018, 12:44 p.m.