Re: [R] In which column and in which row a number is in a matrix

2013-01-02 Thread arun
and in which row a number is in a matrix Dear all, Happy New Year for all of you! I hope we have an year of essential freedom for everyone! I am trying to manipulate a matrix in order to know in which column and in which row a number is allocated. But, when we use the function "which"

Re: [R] In which column and in which row a number is in a matrix

2013-01-02 Thread Charles Novaes de Santana
Ups... sorry, guys! Basic mistake: I forgot to look for the information in the help of the function. Thank you, Gerrit, for the information! All the best! Charles On Wed, Jan 2, 2013 at 12:21 PM, Gerrit Eichner wrote: > Hi, Charles, > > see > > ?which > > and learn about the argument arr.ind. >

Re: [R] In which column and in which row a number is in a matrix

2013-01-02 Thread Gerrit Eichner
Hi, Charles, see ?which and learn about the argument arr.ind. Happy new year -- Gerrit On Wed, 2 Jan 2013, Charles Novaes de Santana wrote: Dear all, Happy New Year for all of you! I hope we have an year of essential freedom for everyone! I am trying to manipulate a matrix in order to

[R] In which column and in which row a number is in a matrix

2013-01-02 Thread Charles Novaes de Santana
Dear all, Happy New Year for all of you! I hope we have an year of essential freedom for everyone! I am trying to manipulate a matrix in order to know in which column and in which row a number is allocated. But, when we use the function "which" it returns the position of the number in the "vector