Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/PipeOpRemoveConstants.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ is_constant_enough = function(x, ratio, rel_tol, abs_tol, na_ignore) {

# now consider finite values: sort them and see if items that are
# 'required_size - 1' steps away from each other differ by at most 'abs_tol' or 'rel_tol'
x = sort(x[is.finite(x)])
x = as.numeric(sort(x[is.finite(x)]))
if (length(x) < required_size) {
return(FALSE)
}
Expand Down