Skip to content

Commit 7268f40

Browse files
committed
fix missed conflict in merge
1 parent c61c573 commit 7268f40

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

NEWS.md

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -212,41 +212,6 @@
212212
#[1] TRUE
213213
```
214214

215-
<<<<<<< HEAD
216-
18. New `frolladapt` helper function has been added to aid in preparation of adaptive length of rolling window width when dealing with _irregularly spaced ordered data_. This lets the user to apply a rolling function over a period without having to deal with gaps in a data where some periods might be missing, [#3241](https://github.com/Rdatatable/data.table/issues/3241). Thanks to @jangorecki for implementation.
217-
```r
218-
idx = as.Date("2025-09-08") + c(0,1,4,5,6,7,9,10,14)
219-
dt = data.table(index=idx, value=seq_along(idx))
220-
dt
221-
# index value
222-
# <Date> <int>
223-
#1: 2025-09-08 1
224-
#2: 2025-09-09 2
225-
#3: 2025-09-12 3
226-
#4: 2025-09-13 4
227-
#5: 2025-09-14 5
228-
#6: 2025-09-15 6
229-
#7: 2025-09-17 7
230-
#8: 2025-09-18 8
231-
#9: 2025-09-22 9
232-
dt[, c("rollmean3","rollmean3days") := list(
233-
frollmean(value, 3),
234-
frollmean(value, frolladapt(index, 3), adaptive=TRUE)
235-
)]
236-
dt
237-
# index value rollmean3 rollmean3days
238-
# <Date> <int> <num> <num>
239-
#1: 2025-09-08 1 NA NA
240-
#2: 2025-09-09 2 NA NA
241-
#3: 2025-09-12 3 2 3.0
242-
#4: 2025-09-13 4 3 3.5
243-
#5: 2025-09-14 5 4 4.0
244-
#6: 2025-09-15 6 5 5.0
245-
#7: 2025-09-17 7 6 6.5
246-
#8: 2025-09-18 8 7 7.5
247-
#9: 2025-09-22 9 8 9.0
248-
```
249-
=======
250215
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.
251216
```r
252217
idx = as.Date("2025-09-05") + c(0,4,7,8,9,10,12,13,17)
@@ -280,7 +245,6 @@ dt
280245
#8: 2025-09-18 8 7 7.5
281246
#9: 2025-09-22 9 8 9.0
282247
```
283-
>>>>>>> master
284248

285249
### BUG FIXES
286250

0 commit comments

Comments
 (0)