[R] Creating methods

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Mon Apr 24 15:14:09 CEST 2023


В Mon, 24 Apr 2023 15:07:50 +0200
Göran Broström <gb using ehar.se> пишет:

>> First, you should only ever write a method if you own the generic 
>> or the class.

> I was stunned when I read it. I write methods all over the place for 
> generics like print, summary, plot, etc.

You most likely do that for your own classes. It's sufficient to own
either the generic or the class, though owning both wouldn't hurt.

-- 
Best regards,
Ivan



More information about the R-help mailing list