Is there a command as "mat.or.vec(nr,nc)" to create an array that I must calculate with more cicle? [[alternative HTML version deleted]]
Hi, On Jul 2, 2009, at 11:13 AM, Barbara.Rogo at uniroma1.it wrote:> Is there a command as "mat.or.vec(nr,nc)" to create an array that I > must calculate with more cicle?I'm not sure your question is very clear: what do you mean by "calculate with more cicle"? Could you give an example of what you're trying to accomplish, in pseudocode if necessary? -steve -- Steve Lianoglou Graduate Student: Physiology, Biophysics and Systems Biology Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact
Barbara.Rogo at uniroma1.it wrote:> >> Is there a command as "mat.or.vec(nr,nc)" to create an array that I >> must calculate with more cicle?Hi Barbara, The approach that I usually use is something like this: new.matrix<-matrix(NA,nrow=3,ncol=3) This creates a 3x3 matrix named "new.matrix" that is filled with NAs. You can then replace the elements of the array with useful values knowing that any value not replaced will remain NA. Jim