mset_names: Set the name of the matrix.

View source: R/matrix.R

mset_namesR Documentation

Set the name of the matrix.

Description

Set the name of the matrix.

Usage

mset_names(X, names = NULL)

mset_colnames(X, names = NULL)

mset_rownames(X, names = NULL)

Arguments

X

A matrix.

names

A character vector corresponding to the variable names. For mset_names, it can also be a list of two character vectors with the first and second elements corresponding to row and column names respectively.

Functions

  • mset_colnames: Set column names only.

  • mset_rownames: Set row names only.

See Also

Other Matrix manipulators: matrixop


emitanaka/simulate documentation built on July 1, 2022, 9:32 a.m.