Suppose, I have a list
a <- c(3, 5, 2, 7, 9)
and I want to do a vector operation, something like:
a_greater_than_five <- a[a>5]
but I want results something like below:
a_greater_than_five <- c(false, false, false, true, true).
Something similar to numpy in python: Check if all values in list are greater than a certain number