Description Usage Arguments Details Value Examples
nzapply
applies a vectorized function to all nonzero elements of a
vector.
1 |
x |
A vector. |
FUN |
A vectorized function. |
base |
What to return if all elements of x are zero. |
... |
Other arguments to pass to |
Source:
http://stackoverflow.com/questions/12583569
Returns the value of applying FUN
to nonzero elements of
x
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.