I would like to add each element in one vector with each element in another vector as follows, but avoid the for loops. Is there a simple method?
You can put b in a matrix and take advantage of R's recycling rules:
b
a + matrix(b, nrow=length(a), ncol=2, byrow=TRUE)