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
In R-devel (post 3.6.1) approx() and approxfun() have a new argument, na.rm=TRUE. If FALSE, input x,y pairs with NAs in only the y values are left around so that predictions based on xout values close to x become NA. The bug occurs when there are duplicate x values for which some y values are NA and some not: the ties function is only called if there is more than one non-NA y value of a given x value. I think it should be called if there is more than one y value, NA or not, for a given x.
E.g., shouldn't the following two example give the same results?
In R-devel (post 3.6.1) approx() and approxfun() have a new argument, na.rm=TRUE. If FALSE, input x,y pairs with NAs in only the y values are left around so that predictions based on xout values close to x become NA. The bug occurs when there are duplicate x values for which some y values are NA and some not: the ties function is only called if there is more than one non-NA y value of a given x value. I think it should be called if there is more than one y value, NA or not, for a given x.
E.g., shouldn't the following two example give the same results?
1 2.0 12.0
2 2.5 12.0
3 3.0 13.2
4 3.5 13.2
5 4.0 14.0
1 2.0 12
2 2.5 12
3 3.0 NA
4 3.5 NA
5 4.0 14
METADATA
The text was updated successfully, but these errors were encountered: