Re: [R] Filling in a Zero Matrix

2007-11-26 Thread jim holtman
Samp2 > 1 2 NA > 4 5 4 > 7 8 5 > 8 NA 7 > > Kind Regards > Amit Patel > > > - Original Message > From: jim holtman <[EMAIL PRO

Re: [R] Filling in a Zero Matrix

2007-11-26 Thread Julian Burgos
My mistake, by xlabel and ylabel you are refering to the row and column names of your matrix, right? To label a matrix you can simply use colnames() and rownames(). Still its not clear to me what you are trying to do with your code. Perhaps if you give us a sample of your data and explain clea

Re: [R] Filling in a Zero Matrix

2007-11-26 Thread Julian Burgos
Hi Amy, Many (perhaps most) of the people on the list do not receive emails with html...so we can't see colored text. Also it would be helpfully to have a bit of your data, so we can run your code (see the posting guide in this regard,http://www.R-project.org/posting-guide.html). Please explai

[R] Filling in a Zero Matrix

2007-11-26 Thread Amit Patel
Hi I am very new to R and statistical programming in general. I am trying to reorder data from a .csv file. I have managed to import the data and create a zero matrix. I am now trying to fill the matrix. There seems to be some problem with this section of my code. I have highlighted the dodgy co