move_to_position: Move item to position of vector

View source: R/helpful_functions.R

move_to_positionR Documentation

Move item to position of vector

Description

Move item to position of vector

Usage

move_to_position(a_vector, items_to_move, my_position)

Arguments

items_to_move

Item or vector of items to move ( not indices )

my_position

Integer/Index of the postion the items should be moved to move the items to

my_vector

A vector

Value

Returns reordered vector


Benjamin-Vincent-Lab/housekeeping documentation built on Feb. 17, 2024, 2:13 a.m.