add_col: add_col

Description Usage Arguments Value

Description

Function that adds new cols into a matrix/vector (depending the case). It works simulating the behavior of a matrix in Matlab. Everytime you want to add a col or a full matrix in an out of bounds index, automatically is created with the col given.

Usage

1
add_col(original, row_index, new_object)

Arguments

original

Initial variable where the final matrix will be stored, it can be already matrix.

row_index

Numeric index representing the col where the new line should be inserted.

new_object

col or matrix to be inserted in the original one.

Value

The matrix with the changes done after the function was run.


jhoffjann/nmmso.R documentation built on May 19, 2019, 9:26 a.m.