getByPositiveOrNegativeIndex: Get Vector Elements by Positive or Negative Index

View source: R/vector.R

getByPositiveOrNegativeIndexR Documentation

Get Vector Elements by Positive or Negative Index

Description

Get element from vector, counting from head or tail

Usage

getByPositiveOrNegativeIndex(elements, index)

Arguments

elements

vector of elements

index

positive or negative index(es) with absolute value between 1 and length(elements)

Value

element(s) out of elements corresponding to the index(es) given in index


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.