Can lapply pass (to a function) values stored in a vector, successively

后端 未结 3 1267
误落风尘
误落风尘 2021-01-19 18:24

I need lapply to pass (to a function) values stored in a vector, successively.

values <- c(10,11,13,10)
lapply(foo,function(x) peakabif(x,npeaks=values))
         


        
3条回答
提交回复
热议问题