We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From SE: https://codereview.stackexchange.com/questions/224705 via Twitter: https://twitter.com/Voovarb/status/1153432914878537729
ppc = 'Pacific/Pitcairn' x <- data.table( TagID = c(20161L, 23055L, 45428L, 2627L), DateTimePST = .POSIXct(c(1415481096, 1380768444, 1474560076, 1511384035), ppc), Receiver = c(102140L, 112568L, 112568L, 121907L) ) y <- data.table( Station = c("YBAAG4", "YBAAG4", "YBCSSW", "YBCSSW", "YBBCD", "YBAWW"), Receiver = c(102140L, 102140L, 112568L, 112568L, 121907L, 121907L), Start = .POSIXct(c(1464979020, 1409256300, 1369945920, 1470761034, 1505494980, 1409246700), ppc)), End = .POSIXct(c(1473357300, 1421878500, 1382638020, 1479838293, 1513282440, 1421871360), ppc), key=c('Receiver', 'Start', 'End') )
The intent of the following seems pretty clear:
foverlaps(x, y, by.x = c('Receiver', 'DateTimePST', 'DateTimePST'), type = 'within')
But for now we have to resort to defining a dummy column:
x [ , end := DateTimePST] foverlaps(x, y, by.x = c('Receiver', 'DateTimePST', 'end'), type = 'within')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
From SE: https://codereview.stackexchange.com/questions/224705
via Twitter: https://twitter.com/Voovarb/status/1153432914878537729
The intent of the following seems pretty clear:
But for now we have to resort to defining a dummy column:
The text was updated successfully, but these errors were encountered: