You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -294,6 +294,8 @@
294
294
295
295
40.Newfunctions`yearmon()`and`yearqtr`giveacombinedrepresentationof`year()`and`month()`/`quarter()`.Theseandalso`yday`, `wday`, `mday`, `week`, `month`and`year`arenowoptimizedformemoryandcomputeefficiencybyremovingthe`POSIXlt`dependency, [#649](https://github.com/Rdatatable/data.table/issues/649). Thanks to Matt Dowle for the request, and Benjamin Schwendinger for the PR.
296
296
297
+
41.Newfunction`%notin%`providesaconvenientalternativeto`!(x %in% y)`, [#4152](https://github.com/Rdatatable/data.table/issues/4152). Thanks to Jan Gorecki for suggesting and Michael Czekanski for the PR. `%notin%` uses half the memory because it computes the result directly as opposed to `!` which allocates a new vector to hold the negated result. If `x` is long enough to occupy more than half the remaining free memory, this can make the difference between the operation working, or failing with an out-of-memory error.
298
+
297
299
## BUG FIXES
298
300
299
301
1.`by=.EACHI`when`i`iskeyedbut`on=`differentcolumnsthan`i`'s key could create an invalidly keyed result, [#4603](https://github.com/Rdatatable/data.table/issues/4603) [#4911](https://github.com/Rdatatable/data.table/issues/4911). Thanks to @myoung3 and @adamaltmejd for reporting, and @ColeMiller1 for the PR. An invalid key is where a `data.table` is marked as sorted by the key columns but the data is not sorted by those columns, leading to incorrect results from subsequent queries.
Logicalvector, \code{TRUE} foreachelementof \code{x} \emph{absent} from \code{table}, and \code{FALSE} foreachelementof \code{x} \emph{present} in \code{table}.
0 commit comments