moveLastElement: Move and delete last element of a vector This moves the last...

View source: R/slides.R

moveLastElementR Documentation

Move and delete last element of a vector This moves the last element of a vector to an index, then deletes the last element, it is broken out for testing purposes

Description

Move and delete last element of a vector This moves the last element of a vector to an index, then deletes the last element, it is broken out for testing purposes

Usage

moveLastElement(v, idx)

Arguments

v

a vector

idx

The index to move the last element to.

Value

a vector


Crunch-io/rcrunch documentation built on June 2, 2025, 11:36 a.m.