[R] determining if a function exists in a particular package
Erin Hodgess
erinm.hodgess at gmail.com
Fri Apr 27 23:07:56 CEST 2012
Hello R People:
Is there a way to determine if a function exists in a particular
package, please?
I looked at exists and objects, but they seem to refer to an
environment rather than a package.
I was thinking of something like:
ifelse(exists(functiona) in MASS, print(1:10), print(5))
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
More information about the R-help
mailing list