If I define a vector as:
vec <- c("for", "paste")
Is there any way to apply a selection on this vector and use the result as an operator? I have tried like this:
vec[1](i, 0:10, print("Hello"))
but the result is an error:
Error: attempt to apply non-function