72.6k views
1 vote
(4 points) To delete the i-th row (j-th column, resp) of a

matrix A in R, type A[-i,] (A[,-j], resp). Use this to define the
following matrices
Du=
and Dl=
Name the matrices Du and Dl, respectively. Y

User BrumScouse
by
7.7k points

1 Answer

5 votes

Answer:

Please replace the values of the matrices A, Du, and Dl with your specific values or structure to perform the operation accordingly.

Step-by-step explanation:

code:
# Sample matrix A

A <- matrix(1:9, nrow = 3)

# Define matrix Du by removing the 3rd row from A

Du <- A[-3, ]

# Define matrix Dl by removing the 2nd column from A

Dl <- A[, -2]

User Holdenweb
by
8.3k points