Learn R Programming

simts (version 0.2.2)

reverse_vec: Reverse Armadillo Vector

Description

Reverses the order of an Armadillo Vector

Usage

reverse_vec(x)

Value

x A column vector with its contents reversed.

Arguments

x

A column vector of length N

Author

JJB

Details

Consider a vector x=[1,2,3,4,5], the function would output x=[5,4,3,2,1].