Does anyone know of a simple and efficient way to figure out how many values, in an unsorted vector, are greater than a variable?
My vector is 1,000,000 values long, and I have about 400 of these comparisons to make, with different vectors and variables. Any time-saving function would be appreciated…
If you just want to know how many meet the condition rather than which ones meet the condition, try this: