Given a function, how do you determine which namespace it has come from?
For example, if I type mean.default at the command prompt, the output includes
mean.default
I very recently learned about find() which seems to do just this.
find()
R> find("ls") [1] "package:base" R> find("na.locf") [1] "package:zoo"