stopifnot
x <- 10:20; y <- 20:30; # Make sure length of x is equal length of y: stopifnot (length(x) == length(y) )
Index