Learn R Programming

UStatBookABSC (version 1.0.0)

IdentityMatrix: Obtains the identity matrix of dimension n

Description

Obtains the identity matrix of dimension n

Usage

IdentityMatrix(n)

Arguments

n
an integer

Value

an identity matrix

Examples

Run this code
 I.3 = IdentityMatrix(3)
 print(I.3)

Run the code above in your browser using DataLab