[R] Function able to identify the row and the column in a matrix

2009-01-21 Thread enrico.fosco...@libero.it
Good morning to all, I should evaluate a function for every cell of a given matrix with n rows and n columns. This function, named fun(), has got two arguments: the number of the row and the number of the column which characterized every single cell. So the result should be fun(1,1) fun(1,2

[R] Function able to identify the row and the column in a matrix

2009-01-21 Thread enrico.fosco...@libero.it
Good morning to all, I should evaluate a function for every cell of a given matrix with n rows and n columns. This function, named fun(), has got two arguments: the number of the row and the number of the column which characterized every single cell. So the result should be fun(1,1) fun(1,2