View source: R/method-from-call.r
method_from_call | R Documentation |
Given a function class, find correspoding S4 method
method_from_call(call, env = parent.frame())
call |
unquoted function call |
env |
environment in which to look for function definition |
library(stats4) # From example(mle) y <- c(26, 17, 13, 12, 20, 5, 9, 8, 5, 4, 8) nLL <- function(lambda) -sum(dpois(y, lambda, log = TRUE)) fit <- mle(nLL, start = list(lambda = 5), nobs = length(y)) method_from_call(summary(fit)) method_from_call(coef(fit)) method_from_call(length(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.