How to let R know a function is not an S3 method?

╄→гoц情女王★ 提交于 2020-01-04 05:57:30

问题


If I define a function called

log.foo = function(foo){
  log(foo)
}

then R will think it is a S3 method. How can I tell R log.foo() is not the S3 method for the class foo. (In fact, class foo does not exist.)

Or do I just have to rename my function?

来源:https://stackoverflow.com/questions/23377869/how-to-let-r-know-a-function-is-not-an-s3-method

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