Description Usage Value Author(s) Examples
View source: R/getLapplyIndex.R
Get name/index of current list element from within FUN argument of lapply()
This is meant to be called from within the FUN argument passed to lapply(); it cannot be used as the FUN argument itself.
It will also return the index along the current dimension DIM if called from a function within the apply() function, though without a name.
This function enables the user to change the processing that occurs within FUN according to which element is being operated on.
1 |
Returns an integer value indicating the current index of the list passed as the X argument to lapply(). If X is named, the name of the current element will be the name of the index.
M.W.Rowe, mwr.stats@gmail.com
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.