Apply a Function of Multiple Arguments
mlapply returns a list of the same length as each of the lists in
Each element of the resulting list is the result of applying
to all the first elements of the lists in lol, all the second elements
of the lists in lol ...
It is the multivariate version of
a list of lists, the elements of each list will be used as arguments to calls to
the function to be applied. In the case of
Any additional arguments passed to each call to
FUN is a function with the number of arguments being equal
to the number of lists contained in
mlapply makes a function call to
FUN for all
the first elements of all the lists in
then a function call to all the second elements of all the lists in
and retunrs all the results as a list.
If the first list in
lol has named elements,
the names will also be used for the elements of the resulting list.
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.