is_used | R Documentation |
This assertion is useful for debugging and to check if necessary varibles and parameters are included and used.
is_used(x, func)
x |
A character string or vector with one or more variables or parameters |
func |
A function |
ll <- function(param) {
V <- list(
alt1 = asc_1 + b_1 * var_1
)
}
is_used("var_1", ll)
is_used("var_2", ll)
is_used("b_1", ll)
is_used(c("b_1", "var_1"), ll)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.