0

cant understand how the matrix is transposed and how the output is 2?

What is the output of this code? a <- matrix(c(8, 0, 2, 5), ncol = 2) a <- t(a) print(a[2, 1])

14th Oct 2022, 1:20 PM
REVATHI S
2 ответов
+ 3
Print a before and after transposition. a[2,1] is the element in row 2, column 1.
14th Oct 2022, 1:29 PM
Lisa
Lisa - avatar
+ 1
Thanks Lisa 👍🏻❤️
14th Oct 2022, 1:41 PM
REVATHI S