lapply
from a character vectorCreate a named list with lapply
from a character vector
named_lapply(.names, FUN, ...)
A character vector holding the names of the list
Here comes the great difference to base::lapply()
and
base::sapply()
. When using lapplI
and sapplI
, the function
passed into FUN
may also have an extra argument .I
. If it does, then
for each item of X
the current item index
is passed into argument .I
of FUN
.
Besides this extra feature, there is no difference to base::lapply()
and
base::sapply()
.
optional arguments to FUN
.
A named list