Skip to content

Commit 6a1cfc2

Browse files
committed
NEWS improve
1 parent dab4aea commit 6a1cfc2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

NEWS.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
```
3333
Additionally argument names in `frollapply` has been renamed from `x` to `X` and `n` to `N` to avoid conflicts with common argument names that may be passed to `...`, aligning to base R API of `lapply`. `x` and `n` continue to work with a warning, for now.
3434
35-
5. Negative and missing values of `n=` in adaptive rolling functions trigger an error.
35+
5. Negative and missing values of `n` argument of adaptive rolling functions trigger an error.
36+
3637
### NOTICE OF INTENDED FUTURE POTENTIAL BREAKING CHANGES
3738
3839
1. `data.table(x=1, <expr>)`, where `<expr>` is an expression resulting in a 1-column matrix without column names, will eventually have names `x` and `V2`, not `x` and `V1`, consistent with `data.table(x=1, <expr>)` where `<expr>` results in an atomic vector, for example `data.table(x=1, cbind(1))` and `data.table(x=1, 1)` will both have columns named `x` and `V2`. In this release, the matrix case continues to be named `V1`, but the new behavior can be activated by setting `options(datatable.old.matrix.autoname)` to `FALSE`. See point 5 under Bug Fixes for more context; this change will provide more internal consistency as well as more consistency with `data.frame()`.
@@ -213,12 +214,12 @@
213214

214215
18. New helper `frolladapt` to facilitate applying rolling functions over windows of fixed calendar-time width in irregularly-spaced data sets, thereby bypassing the need to "augment" such data with placeholder rows, [#3241](https://github.com/Rdatatable/data.table/issues/3241). Thanks to @jangorecki for implementation.
215216
```r
216-
idx = as.Date("2025-09-08") + c(0,1,4,5,6,7,9,10,14)
217+
idx = as.Date("2025-09-05") + c(0,4,7,8,9,10,12,13,17)
217218
dt = data.table(index=idx, value=seq_along(idx))
218219
dt
219220
# index value
220221
# <Date> <int>
221-
#1: 2025-09-08 1
222+
#1: 2025-09-05 1
222223
#2: 2025-09-09 2
223224
#3: 2025-09-12 3
224225
#4: 2025-09-13 4
@@ -234,8 +235,8 @@
234235
dt
235236
# index value rollmean3 rollmean3days
236237
# <Date> <int> <num> <num>
237-
#1: 2025-09-08 1 NA NA
238-
#2: 2025-09-09 2 NA NA
238+
#1: 2025-09-05 1 NA NA
239+
#2: 2025-09-09 2 NA 2.0
239240
#3: 2025-09-12 3 2 3.0
240241
#4: 2025-09-13 4 3 3.5
241242
#5: 2025-09-14 5 4 4.0

0 commit comments

Comments
 (0)