[R] Problem with base::order

Sigbert Klinke @|gbert @end|ng |rom w|w|@hu-ber||n@de
Wed Apr 10 09:33:19 CEST 2024


Hi,

when I execute

order(letters, LETTERS, 1:26)

then everything is fine. But if I execute

order(letters, LETTERS, 1:26, na.last=c(T,T,T), decreasing=c(F,F,F))

I get the error message

Error in method != "radix" && !is.na(na.last) :
'length = 3' in constraint to 'logical(1)'

Shouldn't both give the same result?

Sigbert



More information about the R-help mailing list