I have two vectors:
a <- c(23,43,54)
x <- c(1,543,65,89)
I would like to have a vector y of dimension 4 - (dim(x))
which indicates how many values of the vector a
are upper than each coefficient of the vector x
.
Is there a function that does this task?
Try
Or