Safely creating S3 Generics in R

前端 未结 1 1520
走了就别回头了
走了就别回头了 2021-02-11 16:10

Henrik Bengtsson has provided the internet with a nice way of creating S3 generics in R without having to bother whether they were already created before... in 2002.

Wha

1条回答
  •  清歌不尽
    2021-02-11 16:55

    You can use isGenericS3 function of the R.methodsS3 package. Please see the code below:

    library(R.methodsS3)
    isGenericS3(anova)
    # [1] TRUE
    

    0 讨论(0)
提交回复
热议问题