Description Usage Arguments Details Value Warning Author(s) Examples

Faster highly stripped down version of `sapply()`

1 | ```
fsapply(x, FUN)
``` |

`x` |
a vector (atomic or list) or an expression object. |

`FUN` |
the function to be applied to each element of |

This is just a wrapper for `unlist(lapply(x, FUN))`

, which will behave
as `sapply`

if `FUN`

returns an atomic vector of length 1 each
time.

Speed up over sapply is not dramatic, but can be useful in time critical code.

A vector of results of applying `FUN`

to `x`

.

Very loose version of `sapply`

which should really
only by used if you're confident about how `FUN`

is applied to each
entry in `x`

.

Robin Evans

1 2 3 4 5 6 7 8 9 10 11 12 |

rje42/rje documentation built on Aug. 15, 2017, 7:43 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.