[R] matrix with additional upper, botton, left and right cells

From: Milton Cezar <miltinho_astronauta_at_yahoo.com.br>
Date: Wed 27 Sep 2006 - 02:30:29 GMT


Dear R Gurus,    

  I have a matrix dim(1000x1000) and I need create a second matrix with dim(1002x1002) and insert my first matrix at position col=2,line=2. Please, see an example below:    

  0050055050
  5550000000
  5000505005
  5005000500
  0055550555    

  and I need    

  333333333333
  300500550503
  355500000003
  350005050053
  350050005003
  300555505553
  333333333333    

  Thanks a lot,    

  miltinho


        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
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. Received on Wed Sep 27 12:33:53 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 27 Sep 2006 - 04:30:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.