Re: [Rd] max.col oddity

2006-12-16 Thread John Zedlewski
hink I'd prefer to be clear about what "largest" means in the docs > rather than dropping the absolute value, because if all entries are > negative, your version sets the tolerance to 0. On 12/16/06, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 12/15/2006 7:09 PM, John

[Rd] max.col oddity

2006-12-15 Thread John Zedlewski
I've noticed that the max.col function with the default "random" option often gives unexpected results. For instance, in this test, it seems clear what the answer should be: > # second col should always be max > x1 = cbind(1:10, 2:11, -Inf) > > # this works fine > max.col(x1, "first") [1] 2 2 2 2