Hello, l have the number of columns equals the number of rows . and the the diagonal is esqual to zero . How can l build this matrix ? #mat # [,1] [,2] [,3] [,4] #[1,] 0 NA NA NA #[2,] 1 0 NA NA #[3,] 2 4 0 NA #[4,] 3 5 6 0
thank you
Hello, l have the number of columns equals the number of rows . and the the diagonal is esqual to zero . How can l build this matrix ? #mat # [,1] [,2] [,3] [,4] #[1,] 0 NA NA NA #[2,] 1 0 NA NA #[3,] 2 4 0 NA #[4,] 3 5 6 0
thank you