[R] create one bigger matrix with one smaller matrix
    Giorgio Garziano 
    giorgio.garziano at ericsson.com
       
    Thu Dec 31 21:57:16 CET 2015
    
    
  
A <- matrix(c(1,2,3,4),2,2)
B <- matrix(A, nrow=14, ncol=14)
> B
      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14]
[1,]    1    3    1    3    1    3    1    3    1     3     1     3     1     3
[2,]    2    4    2    4    2    4    2    4    2     4     2     4     2     4
[3,]    3    1    3    1    3    1    3    1    3     1     3     1     3     1
[4,]    4    2    4    2    4    2    4    2    4     2     4     2     4     2
[5,]    1    3    1    3    1    3    1    3    1     3     1     3     1     3
[6,]    2    4    2    4    2    4    2    4    2     4     2     4     2     4
[7,]    3    1    3    1    3    1    3    1    3     1     3     1     3     1
[8,]    4    2    4    2    4    2    4    2    4     2     4     2     4     2
[9,]    1    3    1    3    1    3    1    3    1     3     1     3     1     3
[10,]    2    4    2    4    2    4    2    4    2     4     2     4     2     4
[11,]    3    1    3    1    3    1    3    1    3     1     3     1     3     1
[12,]    4    2    4    2    4    2    4    2    4     2     4     2     4     2
[13,]    1    3    1    3    1    3    1    3    1     3     1     3     1     3
[14,]    2    4    2    4    2    4    2    4    2     4     2     4     2     4
>
Happy New Year!
--
GG
	[[alternative HTML version deleted]]
    
    
More information about the R-help
mailing list