Displaying 1 result from an estimated 1 matches for "unix2excel".
2007 Sep 27
3
testing the contents of an environment
Suppose I want to delete everything in my working directory that is not
a function. It seems that
sapply(ls(),is.function)
always returns FALSE, because ls() returns objects of mode character.
How do I evaluate is.function(), not on a character string, but on the
object that character string represents?
Thanks,
Tim