Sapply is equivalent to sapply, except that it preserves the dimension and
dimension names of the argument X. It also preserves the dimension of results of the
function FUN. It is intended for application to results e.g. of a call to by.
Lapply is an analog to lapply insofar as it does not try to simplify the
resulting list of results of FUN.