So I have a list of functions and need to call specific function in this list without using it's name. So just using a position in the list.
Adding simplificated example for the general idea.
d <- function(){print("d")}
e <- function(){print("e")}
r <- list(d, e)
Now if I wanted to call function "d" while using r[], how do I do that?
I've tried using
r[1]()
but it just brings the "Attempt to apply non function" Error.