[R] Error in rep in matrix - Windows 8- R 3.2.1

Nikita Dinger dingernikita at gmail.com
Sat Aug 8 22:44:55 CEST 2015


 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]]



More information about the R-help mailing list