Learn R Programming

optsize (version 0.1.0)

make_vertical: Make a vertical vector from a matrix

Description

Creates a column-wise vector from a matrix. For every second column, the elements are reversed.

Usage

make_vertical(mat)

Value

A numeric vector

Arguments

mat

A matrix to be converted into a vertical vector