Different %between%
behavior on character vectors undocumented
#3667
Milestone
%between%
behavior on character vectors undocumented
#3667
At the moment, the help documentation for
%between%
states thatWhile this appears to be true for numeric vectors, for character vectors,
NA
is not treated as a missing bound and yieldsNA
, as seen below, and this difference is not noted in the documentation. Since (theoretically) the lexicographic order is a total order, one might expect the same or similar behavior unless indicated otherwise, and the documentation appears to imply this, given it does not mention character vectors are treated differently. The different behavior on character vectors should probably be either (a) documented if this is intended or (b) altered to treatNA
as a missing bound (as with numeric vectors).#
Minimal reproducible example
]#
Output of sessionInfo()
data.table
package is the most recent stable development version pulled today usinginstall.packages
.The text was updated successfully, but these errors were encountered: