This is your third argument that you need to look at.
lapply takes (at least) two arguments, a list (including a data frame) and a FUN function that runs on it:
data(iris) df0 = iris[1:5,1:3] fnx = function(v){v^2} lapply(df0, fnx)
lapply accepts an optional third argument, which must correspond to additional arguments required by the FUN and not provided by the data string of the first argument:
lapply( df0[,1], quantile, probs=1:3/4)
doug
source share