Skip to contents

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