y <- matrix(rep(10,4),2,2) > y [,1] [,2] [1,] 10 10 [2,] 10 10 I expected an output of > y [,1] [,2] [1,] 10 4 [2,] 10 4 Thanks and Regards. [[alternative HTML version deleted]]