Description Usage Arguments Value Functions
The function is modelled after 'vapply', but always returns a matrix
with one row for each iteration. You need to provide the number
of elements each function call produces beforehand (i.e. the number of
resulting columns). For a more flexible version where you don't need to
provide the number of columns see msply_dbl
1 2 3 |
x |
a vector that will be passed to 'vapply' or a matrix that will be
passed to apply with |
FUN |
the function that returns a vector of length ncol |
ncol |
the length of the vector returned by 'FUN'. |
... |
additional arguments to FUN |
a matrix of size length(x) x ncol
mply_dbl
: apply function that always returns a numeric matrix
msply_dbl
: flexible version that automatically infers the number
of columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.