Skip to content

Commit

Permalink
force width variable to numeric in trimPool()
Browse files Browse the repository at this point in the history
  • Loading branch information
rchew committed May 5, 2018
1 parent e35b55f commit 5941422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utility_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ trimPool <- function(alpha, data_pool, lr_result,
}

width <- alpha * pooled_stdev
trimmed_data <- dplyr::filter(data_pool, data_pool$difference <= width)
trimmed_data <- dplyr::filter(data_pool, data_pool$difference <= as.numeric(width))
} else {
trimmed_data <- data_pool
}
Expand Down

0 comments on commit 5941422

Please sign in to comment.