insertCol {micEcon}R Documentation

Insert Column into a Matrix

Description

Insert Column into a Matrix.

Usage

insertCol( m, c, v = NA )

Arguments

m Matrix.
c column number where the new column should be inserted.
v Optional values of the new column.

Value

a matrix with one more column than the provided matrix m.

Author(s)

Arne Henningsen ahenningsen@agric-econ.uni-kiel.de

See Also

insertRow.

Examples

   m <- matrix( 1:4, 2 )
   insertCol( m, 2, 5:6 )

[Package micEcon version 0.1-3 Index]