tidyverts / tsibble

Tidy Temporal Data Frames and Tools
https://tsibble.tidyverts.org
GNU General Public License v3.0
530 stars 49 forks source link

Fix `difference()` giving extra NA values for short vectors #311

Closed mitchelloharawild closed 3 months ago

mitchelloharawild commented 4 months ago
library(tsibble)
#> 
#> Attaching package: 'tsibble'
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, union
difference(1, differences = 3)
#> [1] NA

Created on 2024-05-12 with reprex v2.0.2

Resolves #310