I am trying to write a function that lists the names of dataframes in my global environment.
I can do this by using the code:
l<-ls()
l[sapply(l, function(x) is.data.frame(get(x)))]
I need to convert this into a function that I can easily call upon.