So, I realized that this is because it xis data.frame, and pmin is expecting a vector. So, the following works just fine:
pmin(x[,1], 1 - eps)
But I wanted to understand why it did not work for data.frame. Therefore, passing through the code for pmin, the line of violation is as follows:
mmm[change] <- each[change]
each (1 - eps ), change - , , each[1], NA. , x - , :
if (all(vapply(elts, function(x) is.atomic(x) && !is.object(x), NA))) {
mmm <- .Internal(pmin(na.rm, ...))
mostattributes(mmm) <- attributes(elts[[1L]])
}
, -, , pmin , , data.frame, .