Learn R Programming

geo (version 1.4-3)

fill.matrix: Relace elements of a matrix

Description

Replace (fill) elements of a matrix (or data.frame) with a value for given pairs of row and column indices.

Usage

fill.matrix(outcome, x, rownr, dalknr)

Arguments

outcome
Input matrix/data.frame
x
Value or values to replace/fill with
rownr
Row index/indices
dalknr
Column index/indices

Value

Matrix or data.frame with given values replaced.