Suppose I have two vectors in R->
and another vector
and I want a vector of dim(y) to be returned which would tell how many of the values in vector x are greater than/less than/equal to the individual values in y. How can I do this in R?
In other words, How can I perform this task without for loop->
for(i in 1:length(y))
for(j in 1:length(x))
 4 1 1 3 3