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])
2 Respostas
+ 3
Print a before and after transposition.
a[2,1] is the element in row 2, column 1.
+ 1
Thanks Lisa 👍🏻❤️