as.dense.matrix: Title

View source: R/MRIO_tools.R

as.dense.matrixR Documentation

Title

Description

Title

Usage

as.dense.matrix(x, row = 1, col = 2, value = 3, keep.names = TRUE)

Arguments

x

a sparse matrix in the form a either a data.frame or data.table. Needs to have 3 columns. Default order: row | col | value. If order differs please specify 'row', 'col' and 'value' arguments. Row and col columns can be either integers (representing the location in the matrix) or character.

row

which column of x represent the row-index? default 1

col

which column of x represent the column-index? default 2

value

which column of x represent the value? default 3

keep.names

only considered if the 'row' and 'col' columns of 'x' are of type character.


simschul/my.utils documentation built on June 29, 2023, 6:50 a.m.