#1 matrix_example = matrix(c(100,23,42,23,342,203), nrow=3, ncol=2) matrix_example #2 one_matrix = matrix_example/matrix_example #one_matrix #3 one_matrix[,1] = log(matrix_example[,1]) #one_matrix #4 one_matrix[2,] = matrix_example[2,]*0.33 #one_matrix #5 # to transpose a matric we use t() function one_matrix_t = t(one_matrix) one_matrix_t #6 matrix_mul = one_matrix_t%*%matrix_example matrix_mul
To embed this project on your website, copy the following code and paste it into your website's HTML: