When one applies an equality or inequality operation to an xts object with index class date, the result is an xts object where the index class is now POSIXct. The problem does NOT occur for other operations like +, -, *, /, etc. The problem seems to arise in the xts:::Ops.xts function.
Expected behavior
Expected behavior should be that the index class does not change by this operation.
Description
When one applies an equality or inequality operation to an xts object with index class date, the result is an xts object where the index class is now POSIXct. The problem does NOT occur for other operations like +, -, *, /, etc. The problem seems to arise in the xts:::Ops.xts function.
Expected behavior
Expected behavior should be that the index class does not change by this operation.
Minimal, reproducible example
Session Info