Is 'show' a normal S4 generic function?

不羁的心 提交于 2019-12-05 14:05:39

The function show takes an argument object, so you would need to define your signature and function definition with respect to that formal argument:

setMethod("show", signature(object="SCvec"), function(object) print(object))

You can also see other methods that are defined for show by typing in

showMethods(show)

And this shows you that all the other methods are defined in terms of the class of object as well.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!