wrap_fun_in_all | R Documentation |
Modifies a user-defined function to wrap its body in an all() call, ensuring that it returns a single logical value instead of a vector.
It uses bquote() to create a new body for the function. The .() inside bquote() inserts the original body of the function. The all() function wraps around the original body.
wrap_fun_in_all(user_fun)
user_fun |
A user-defined function. |
The modified function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.