Displaying 1 result from an estimated 1 matches for "267023".
Did you mean:
260023
2001 Aug 04
1
replacing elements in matrix: fastest method?
Hi!
I replace some elements of a matrix a
> a
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 4 5 6
[3,] 7 8 9
[4,] 10 11 12
according to a reclassification matrix such
> pares
[,1] [,2]
[1,] 1 2
[2,] 5 6
[3,] 8 7
to get
> b
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 4 5 6
[3,] 7 8 9
[4,] 10 11 12
As both a and