Skip to content
Prev 257232 / 398506 Next

mapply to lapply

Hi Alex,

sorry, I wasn't aware that sum does not work with listst. replace 
"lapply" with "sapply" or place the call in "unlist".

Your second example does not work as you have to provide the additional 
arguments to the inner function in lapply:

lapply(1:nrow(cells), function(rowInd, i, j), [your function goes here], 
i=i, j=j)

Viele Gr??e,

Andreas

Alaios schrieb: