馃馃馃 #RStats
2
3
2
Replying to @stulacy
This is #rstats R FAQ 7.31, but in a trenchcoat. You cannot (generally, reliably) test equality on floats -- which POSIXct is under the hood -- so in turn joins are tricky to impossible. You can truncate down, or do approximate joins, or ...

Oct 13, 2022 路 3:19 PM UTC

1
1
5
Replying to @eddelbuettel
It's more that seq.POSIXt returns class (POSIXt, POSIXct), which is incompatible with the 'typical' (POSIXct, POSIXt) class. Point taken about floats though, incidentally your (excellent!) nanotime package's seq returns (POSIXct, POSIXt) so this issue wouldn't have arisen
1
As `nanotime` uses int64_t representation via `bit64::integer64` you can join on that (if you don't convert)! The `data.table` package does a few things right here (IDate, IDateTime) and has long had both `nanotime` support and joins for time-series.
4