numeric2diag: Create a diagonal numeric matrix from diagonal elements

View source: R/matrix.R

numeric2diagR Documentation

Create a diagonal numeric matrix from diagonal elements

Description

Create a diagonal numeric matrix from diagonal elements

Usage

numeric2diag(x, context = NULL)

Arguments

x

numeric data

context

used to generate column names

Value

a numeric diagonal matrix


mrgsolve documentation built on Oct. 18, 2024, 5:12 p.m.