I am looking for information about how to make a function aware of its own call.
Let's say I have a function called myf that takes 2 arguments: x and y myf <- function(x, y) { #some code }.
How can I know within the function:
1- if x and y were assigned to objects or values ?
For example myf( x = a, y = b ) versus myf( x = 1:5, y = data.frame(a = 1, b=2) ),
2- what are the name of the objects passed to x and y if they were assigned to existing objects?
For example myf( x = a, y = b ), I would like to know that x was assigned to a object called "a" and y to an objected called "b"