The problem is quite simple yet I can't find the answer.
I have myfun <- function(x, y)
. How can I sapply
this function over a list of y
?
To apply over x
I would do this
iterables <- 1:10
sapply(iterables, myfun, y)
But I want the iterables to be y instead.