Que: What will be the output of the following R function?

d <- diag(5, nrow=2, ncol=2)
D
a. 5 10 5
b. 5 05 5
c. 5 015 5
d. 5 00 5
Answer: 5 00 5

Leave a Comment