For each row, the function identifies the column that has the maximum value. The function returns a data frame with two columns: the first is the column name corresponding to the column of maximum value and the second is the correspond maximum. The first column is convereted to a factor.
If the maximum is zero, the maximum column is identified as "zero".
If there are over
nbig factors in column 1, the maximum values
that are less than the largest are combined and identified as "other".
Intended use is to transform community ecology data for use in
where method is randomForest.
a data frame or matrix of numeric values.
see description–the maximum number of factors, the remainder called 'other'.
A data frame.
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.