[R] Help with assigning values to a row or column

2010-02-08 Thread Dave Deriso
Hello, I am attempting to write a function that assigns a value to a row or column within the matrix that it runs on. I am, however, having trouble accessing the row or column within this dynamic variable. I have looked through the archives (nothing there) and read the rules for posting to this

Re: [R] Help with assigning values to a row or column

2010-02-08 Thread Dave Deriso
Hello, With a little broader searching, I did find a solution by Fernando Saldanha (http://tolstoy.newcastle.edu.au/R/help/05/04/3559.html): eval(parse(text = paste('testMatrix', '[1,] - 4', sep = ''))) Thanks anyway!! Best, Dave On Mon, Feb 8, 2010 at 12:19 AM, Dave Deriso