Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check number of non-NA obs before loop calculation
The example below would segfault because 'x' has fewer non-NA obs than the value for 'n' in runPercentRank(). x <- data.frame(y = c(rep(NA, 5), 1:5)) runPercentRank(x, 6, FALSE) Thanks to Ian Fellows for the report. Fixes #112.
- Loading branch information