matrix.fromNames: matrix.fromNames

View source: R/CodeAndRoll2.R

matrix.fromNamesR Documentation

matrix.fromNames

Description

Create a matrix from 2 vectors defining the row- and column names of the matrix. Default fill value: NA.

Usage

matrix.fromNames(rowname_vec = 1:10, colname_vec = LETTERS[1:5], fill = NA)

Arguments

rowname_vec

A vector of names for rows, Default: 1:10

colname_vec

A vector of names for columns, Default: LETTERS[1:5]

fill

The value to fill the new vector, Default: NA


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.