Skip to content

Commit a1b0233

Browse files
committed
check rows of errors instead of yrep
(doesn't really matter)
1 parent 267c532 commit a1b0233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/ppc-errors.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ binned_error_data <- function(y, yrep) {
448448

449449
errors <- compute_errors(y, yrep)
450450
binned_df <- bin_errors(rep_id = 1, ey = yrep[1, ], r = errors[1, ], nbins = nbins)
451-
if (nrow(yrep) > 1) {
451+
if (nrow(errors) > 1) {
452452
for (s in 2:nrow(errors)) {
453453
binned_s <- bin_errors(rep_id = s, ey = yrep[s,], r = errors[s,], nbins = nbins)
454454
binned_df <- rbind(binned_df, binned_s)

0 commit comments

Comments
 (0)