Function(s) that apply expressions to input data objects and return lists.
lap: Iterate over input and return list(s)
Usage
lap(.data, .f, ...)
Arguments
.data
Input object<U+2013>numeric, character, list, data frame, etc.<U+2013>over
which elements will be iterated. If matrix or data frame, each
column will be treated as the elements which are to be iterated over.
.f
Function to apply to each element of input object. This can be
written as a single function name e.g., mean, a formula-like
function call where '.x' is assumed to be the iterated over element of
input data e.g., ~ mean(.x), or an in-line function definition e.g.,
function(x) mean(x).