mtx: Abbreviated scalar

View source: R/vector.R

mtxR Documentation

Abbreviated scalar

Description

Abbreviated scalar

Usage

mtx(data = NA, nrow = 1, ncol = 1, by_row = FALSE, dimnames = NULL)

Arguments

data

an optional data vector (including a list or expression vector). Non-atomic classed R objects are coerced by as.vector and all attributes discarded.

nrow

the desired number of rows.

ncol

the desired number of columns.

by_row

logical. If FALSE (the default) the matrix is filled by columns, otherwise the matrix is filled by rows.

dimnames

A dimnames attribute for the matrix: NULL or a list of length 2 giving the row and column names respectively. An empty list is treated as NULL, and a list of length one as row names. The list can be named, and the list names will be used as names for the dimensions.


D-Se/ergo documentation built on May 24, 2022, 5:20 p.m.