mtrx: Creates a matrix with row and column names

Description Usage Arguments Details

View source: R/utils.R

Description

Compared to matrix(), this function has simpler syntax for creating a matrix with names, especially only column names.

Usage

1
2
3
4
5
6
7
8
mtrx(
  data = NA,
  row.names = NULL,
  col.names = NULL,
  nrow = NULL,
  ncol = NULL,
  byrow = FALSE
)

Arguments

data

data vector, contents of the matrix

row.names

character vector, row names

col.names

character vector, column names

nrow

integer, number of rows

ncol

integer, number of columns

byrow

logical, determines fill direction

Details

The name mtrx is short for (m)a(tr)i(x).


tkonopka/shrt documentation built on March 5, 2020, 2:51 p.m.