powered by
Helper function to check if two functions are the same
is_same_function(f, g)
Logical.
Functions to compare.
f1 <- function(x) { x^2 + 1 } f2 <- function(x) { x^2 + 1 } is_same_function(f1, f2) # TRUE
Run the code above in your browser using DataLab