Dear all,
I did this replacement below and its work for the first case but not in the
second case! Please tell me what's wrong with the second case.....
Case 1:
m
[,1] [,2]
[1,] 1 4
[2,] 2 5
[3,] 3 6
l
[,1] [,2]
[1,] 9 10
matric1<-replace(m,m[3,],l)
matric1
[,1] [,2]
[1,] 1 4
[2,] 2 5
[3,] 9 10
matric2<-replace(m,m[3,],xy[50,])
matric2
[,1] [,2]
[1,] 1.000000 4.000000
[2,] 2.000000 5.000000
[3,] 1.855060 -1.865495
(for matric2 xy[50,] is [1.855060, -1.865495]
Case 2: