Skip to content

Trying to extract an algorithm from a function

2 messages · CALEF ALEJANDRO RODRIGUEZ CUEVAS, David Winsemius

#
On Dec 29, 2010, at 3:31 PM, CALEF ALEJANDRO RODRIGUEZ CUEVAS wrote:

            
With the package loaded do this to an object to which you are  
submitting to predict
class(object)

Then do"

methods(predict)

If your <class>.predict function has a "*" by it then do this:

getAnywhere(<class>.predict)

And if you are using a package that uses S4 methods, good luck.
--

David Winsemius, MD
West Hartford, CT