kevinushey/RcppRoll

roll_max(c(NA, NA, 3, 2, 1), n=2L, fill=NA, align="right", na.rm=TRUE) now gives c(NA, -Inf, 3, 3, 2)

minotaur-king opened this issue · 0 comments

roll_max(c(NA, NA, 3, 2, 1), n=2L, fill=NA, align="right", na.rm=TRUE) now gives c(NA, -Inf, 3, 3, 2).
If I remember correctly, previous package versions gave the "desired" result c(NA, NA, 3, 3, 2).

Similarly roll_min(c(NA, NA, 3, 2, 1), 2L, fill=NA, align="right", na.rm=TRUE) results to c(NA, Inf, 3, 2, 1).

I currently have package version 0.3.0 installed on R version 4.1.1

Thank you.