get.function | R Documentation |
(Internal) Get function and function name from call
get.function(call, type = c("function", "character"), envir = parent.frame())
call |
a call from which extract function. |
type |
a character vector denoting type of return value. "function" or "character" can be used. "character" is default. |
envir |
an environment where to evaluate the call. |
If type is "function", function object. If type is "character", character literal of function name. Note that if the function in the call is copy of other function, this funciton tries to find original name of it.
model.adapter:::get.function(
substitute(glm(Sepal.Length ~ ., data = iris))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.