Re: [R] Re place values matrix

2008-11-18 Thread Uwe Ligges
From ?"[": "When indexing arrays by [ a single argument i can be a matrix with as many columns as there are dimensions of x" Uwe Ligges start wrote: To replace particular values in a matrix we can use the following command. matrix[x,y] = value But what to do if I have a list of +- 1,000

Re: [R] Re place values matrix

2008-11-18 Thread Greg Snow
D] 801.408.8111 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of start > Sent: Tuesday, November 18, 2008 8:55 AM > To: r-help@r-project.org > Subject: [R] Re place values matrix > > > To replace particular values in

[R] Re place values matrix

2008-11-18 Thread start
To replace particular values in a matrix we can use the following command. matrix[x,y] = value But what to do if I have a list of +- 1,000,000 values and associated x,y values. Is there an efficient way to replace my matrix with those values. My first idea was to replace x, y and values by vect