insertRow {micEcon}R Documentation

Insert Row into a Matrix

Description

Insert Row into a Matrix.

Usage

insertRow( m, r, v = NA )

Arguments

m Matrix.
r Row number where the new Rown should be inserted.
v Optional values for the new Row.

Value

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

Author(s)

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

See Also

insertCol.

Examples

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

[Package micEcon version 0.1-6 Index]