Question: Run the R code Matrix operation, missing, and naming then turn in the output (list-la rm aet.aeed (1) rnorm (10 5) matri cbind (runif (10),

(list-la rm aet.aeed (1) rnorm (10 5) matri cbind (runif (10), rnorm (10), matrl matr1 12. dim (ma tri) add column name and row name N (3, s) s -c 1) N (0,1 ("U colnames (ma tri) rvnames matri obse c (1110) rownames (matrl) c-obs matrl row sum rowsums (matrl) compute column sum colsums (mas trl) #compute mean colMeans (matrl) compute column summary (matrl I, c (1)]) summry of column 1 sd (matrl "U(0, 1) "1) a s.d. of U(0,1). column mean (matr 1) a overall mean of all elements #Extract N (0,1) column. N (0,1) becomes a vector N01-matrl c" (NN (0,1) N01 dim (N01) #Extract N (0,1) and retain it as a matrix using argument drop TRUE NO l matrl I, "N (0,1) drop FALSE) N01 dim (N01) #use dimnames to define row and column names set seed (2) (10), (10, 3, 5)) ,nrow 10, matr2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
