[R] Rpad textarea handling

2007-10-05 Thread Tim Bergsma
cript' are restored. Furthermore, I can't eliminate the leading and trailing whitespace in the textarea. Thanks in advance for any ideas, -Tim Bergsma Metrum Research Group, LLC script <- c("test","test") script HTMLon() HTMLtag("text

[R] testing the contents of an environment

2007-09-27 Thread Tim Bergsma
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 r