如何测试两个函数变量是否指向同一个函数?
test = lm
test2 = lm
test == lm # error: comparison (1) is possible only for atomic and list types
test == test2 # error: comparison (1) is possible only for atomic and list types
Try:
identical(test, lm)
identical(test, test2)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)