| iapply | R Documentation | 
Apply function with an index variable as the second input.
iapply(X, FUN, ..., .method = c("sapply", "lapply", "vapply"))
| X | a vector (atomic or list) | 
| FUN | the function to be applied to each element of  | 
| ... | passed to apply methods | 
| .method | method to use, default is  | 
FUN will be further passed to the apply methods. Unlike
lapply, FUN is expected to have at least two arguments.
The first argument is each element of X, the second argument is the
index number of the element.
a list or matrix depends on .method. See lapply
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.