find.original.name | R Documentation |
(Internal) Find original name of the function.
find.original.name(fun)
fun |
a function |
a character string of original function name. if the function specified as fun is 'original' of it, this funciton returns name of fun itself. Note that this function cannot work correctly if a copy of the function and the original function are in the same environment.
a <- ls
model.adapter:::find.original.name(a)
a <- glm
model.adapter:::find.original.name(a)
a <- function() print("test")
model.adapter:::find.original.name(a)
# But in the following situation, this can't work correctly.
test <- function() print("test")
a <- test
model.adapter:::find.original.name(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.