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

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to