[Rd] Does type raw really have no ordering?

2021-02-08 Thread Hugh Parsonage
In the help for Extremes ?min > Note that all versions fail for raw and complex vectors since these have no > ordering. This makes sense for complex vectors, yet `raw` vectors seem to have a natural order. Indeed: which.min(as.raw(c(5L, 2L, 1L, 99L))) works and would identify the minimum. Si

Re: [Rd] Does type raw really have no ordering?

2021-02-08 Thread Prof Brian Ripley
On 08/02/2021 13:25, Hugh Parsonage wrote: In the help for Extremes ?min Note that all versions fail for raw and complex vectors since these have no ordering. This makes sense for complex vectors, yet `raw` vectors seem to have a natural order. Indeed: which.min(as.raw(c(5L, 2L, 1L, 99L)))