On Tue, 25 Aug 2020 14:26:43 +0200
Mike wrote:
> But which.min only does so if the values don't contain fractions.
> And I get
>
> > identical (data3ba, c(2.9,2.9))
> [1] FALSE
>
> Why is which.min not always returning 1 but which.max does?
It's the unfortunate consequence of the way
Hi,
According to ?which.min it returns the "index of the (first)
minimum". So I would expect it to also return the first minimum when
providing two identical extrema. But my minimal reproducible doesn't
do so:
data1a <- c(3.2,4.2)
data1b <- c(3.1,4.1)
data2a <- c(0.2,1.2)
data2b <- c(4.2,5.2)
2 matches
Mail list logo