Check that two function variables point to the same function?

How to check that two function variables point to the same function?

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 
+4
source share
1 answer

Try:

 identical(test, lm) identical(test, test2) 
+7
source

All Articles