> shouldn't your last expression be: > > if (any(tst)) big.vector.1[tst] <- big.vector.2[tst] > > Sure, that was a typo.
Also, I know that `%%` does not make sense neither for Inf nor for big numbers, but `%/%` - since it's "only" a special case of `/` - should make sense; it should be "equivalent" (obviously doing some machine-optimization) to `%/%` <- function(x, y) floor(x / y) (which works fine for infinite x and non-zero y) Alberto Monteiro ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.