Re: [Rd] help text for which.min

2011-10-10 Thread Henrik Pärn
Of course the reasoning below applies also to an example with which.max, so yet another suggestion for the x vector: x <- c(1, 2, 0, 0, 3, 3, 1, 2) > which.min(x) [1] 3 > which(x == min(x)) [1] 3 4 > which.max(x) [1] 5 > which(x == max(x)) [1] 5 6 Cheers, Henrik On 08.10.2011 14:54, Henri

[Rd] help text for which.min

2011-10-10 Thread Henrik Pärn
Dear R developers, I find the which.min function very handy. However, maybe you could consider a tiny addition to the example data in the the help text. By adding another zero to the vector x... x <- c(1:4, 0, 0:5,11) ...the example would more explicitly show that which.min actually 'giv[es]