Complete the code to transpose matrix m.
t_m <- [1](m)The t() function transposes a matrix in R.
Complete the code to find the inverse of matrix m.
inv_m <- [1](m)The solve() function computes the inverse of a matrix in R.
Fix the error in the code to correctly compute the inverse of matrix m.
inverse_m <- [1](m)Only solve() correctly computes the inverse in base R.
Fill both blanks to create a matrix m and then transpose it.
m <- matrix(c(1, 2, 3, 4), nrow = [1], ncol = [2]) t_m <- t(m)
The matrix has 2 rows and 2 columns as per the data vector length.
Fill all three blanks to create a matrix, find its inverse, and then transpose the inverse.
m <- matrix(c(4, 7, 2, 6), nrow = [1], ncol = [2]) inv_m <- [3](m) t_inv_m <- t(inv_m)
t() instead of solve() for inversionThe matrix is 2x2, solve() finds its inverse, then t() transposes it.
