[R] hwo can i get a vector that...

bunny , lautloscrew.com bunny at lautloscrew.com
Wed Mar 7 23:12:04 CET 2007


dear all,

how can i get a vector that shows the number of the column of matrix  
that contains the maximum of the row ??
can´t believe in need a loop for this...

i have a  100 x 3 matrix and want to get a 100 x 1 vector with values  
1,2,3 .

there must be a simple solution. i just cannot find it. i think am  
searching on the wrong end.

thx for help in advance.

m.



More information about the R-help mailing list