Converting package using S3 to S4 classes, is there going to be performance drop?

后端 未结 3 997
执念已碎
执念已碎 2021-02-14 02:04

I have an R package which currently uses S3 class system, with two different classes and several methods for generic S3 functions like plot, logL

3条回答
  •  耶瑟儿~
    2021-02-14 02:49

    If you are concerned about performance, benchmark it. If you really need multiple inheritance or multiple dispatch, use S4. Otherwise use S3.

提交回复
热议问题