李会超 发表于 2015-1-6 10:47 

!
The first argument of lapply or sapply should b a list object, and the second argument be either the name of of a built-in function not quoted, like sum, or a self-defined function like the one given above by
李会超. It can also contain additional arguments depending on the function you are using. Sapply or lapply basically loops over each element in a list and applies the function on each of them. They are presumably quicker than using a loop directly.