Learn R Programming

optsize (version 0.1.0)

make_horizontal: Make a horizontal vector from a matrix

Description

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

Usage

make_horizontal(mat)

Value

A numeric vector

Arguments

mat

A matrix to be converted into a horizontal vector