Re: [R] Ask if an object will respond to a function or method

2016-03-31 Thread David Winsemius
> On Mar 31, 2016, at 1:00 PM, Paul Johnson wrote: > > In the rockchalk package, I want to provide functions for regression > objects that are "well behaved." If an object responds to the methods > that lm or glm objects can handle, like coef(), nobs(), and summary(), > I want to be able to hand

Re: [R] Ask if an object will respond to a function or method

2016-03-31 Thread Martin Morgan
On 03/31/2016 04:00 PM, Paul Johnson wrote: In the rockchalk package, I want to provide functions for regression objects that are "well behaved." If an object responds to the methods that lm or glm objects can handle, like coef(), nobs(), and summary(), I want to be able to handle the same thin

[R] Ask if an object will respond to a function or method

2016-03-31 Thread Paul Johnson
In the rockchalk package, I want to provide functions for regression objects that are "well behaved." If an object responds to the methods that lm or glm objects can handle, like coef(), nobs(), and summary(), I want to be able to handle the same thing. It is more difficult than expected to ask a