insert: Inserting a value into a vector

View source: R/UWHAM-code.R

insertR Documentation

Inserting a value into a vector

Description

This inserts a value x0 at d-th position of x.

Usage

insert(x, d, x0 = 0)

Arguments

x

A vector.

d

A position in x.

x0

A value to be inserted.

Value

The resulting vector.


UWHAM documentation built on May 20, 2022, 5:05 p.m.