[R] how to creat a matrix

Moohwan Kim kmhlmj2 at gmail.com
Fri Dec 11 16:47:44 CET 2009


Dear R family

  I am attempting to create a matrix. e.g.,
  0 0 0 0 1
  1 0 0 0 0
  0 1 0 0 0
  0 0 1 0 0
  0 0 0 1 0
  How could I write a R program?
  Later I want to extend it to a N by N case.
  Thanks in advance

  best
  Moohwan




More information about the R-help mailing list