在R中,如何查看实现泛型方法的签名?

时间:2022-04-13 20:34:12

Is there a function in R that finds all implemented signatures for a given generic function?

R中是否有一个函数可以找到给定泛型函数的所有已实现签名?

I am looking for something like:

我正在寻找类似的东西:

findSignatures("myFunction")

[1] "character"

[1]“人物”

1 个解决方案

#1


1  

If you just want to see the signatures, you can use the showMethods function:

如果您只想查看签名,可以使用showMethods函数:

showMethods("myFunction")

#1


1  

If you just want to see the signatures, you can use the showMethods function:

如果您只想查看签名,可以使用showMethods函数:

showMethods("myFunction")