[R] Continuous columns of matrix

Berend Hasselman bhh at xs4all.nl
Fri May 24 12:36:47 CEST 2013

On 24-05-2013, at 12:24, eliza botto <eliza_botto at hotmail.com> wrote:

> Dear useRs,If i have a matrix, say, 12 rows and 6 columns. The columns are continuous. I  want to find the index of maximum values and the actual maximum values. The maximum values in each column are the highest values and the values greater than or equal to 80% of the maximum value. Moreover, if a column has more than one maximum values than these values should come immediately next to each other.  For example, if you column 1 has a highest value in 6th row then the second maximum values cant be in row 5 or 7. And as the columns are continuous therefore, if maximum value is in row 12th, then the second maximum cant be in row 11 and 1.Thankyou very much indeed in advance

What is a continuous column?

Please give an example input matrix and and the result you want.


> Elisa  		 	   		  
> 	[[alternative HTML version deleted]]

Please post in plain text.

More information about the R-help mailing list