Re: [R] Is there an easier way than this to list all functions in the global environment?

2014-05-19 Thread Byron Dom
Thanks. Good suggestion. I completely forgot about the *apply() functions -- a symptom of my R-neophyte status. ;-)  From: Peter Alspach peter.alsp...@plantandfood.co.nz ct.org Sent: Sunday, May 18, 2014 4:24 PM Subject: RE: [R] Is there an easier way

Re: [R] Is there an easier way than this to list all functions in the global environment?

2014-05-19 Thread Byron Dom
Thanks. That's the answer I was looking for. It not only lists the function names by also the arguments required.  I wonder why I was unable to find that command in all the searching I did (?).     - - Byron To: r-help@r-project.org r-help@r-project.org

[R] Is there an easier way than this to list all functions in the global environment?

2014-05-18 Thread Byron Dom
After an unsuccessful search thru several books plus online documentation, I was unable to find a simple way to do this, so I wrote my own function (see below) to do it.  I'm relatively new to R however, so I'm guessing that there must be an easier way to do it. I want to list all functions

Re: [R] Is there an easier way than this to list all functions in the global environment?

2014-05-18 Thread Peter Alspach
Tena koe Byron Many years ago, I came across the following function by Simon Fear: function (splitby = mode, pos = 1, ...) { lsout - ls(pos = pos, ...) tapply(lsout, sapply(lsout, function(x) { splitby(get(x)) }), invisible) } from which one can deduce that, given your obj,

Re: [R] Is there an easier way than this to list all functions in the global environment?

2014-05-18 Thread arun
Hi, You may also check ?lsf.str() c(lsf.str()) A.K. On Sunday, May 18, 2014 7:27 PM, Peter Alspach peter.alsp...@plantandfood.co.nz wrote: Tena koe Byron Many years ago, I came across the following function by Simon Fear: function (splitby = mode, pos = 1, ...) {     lsout - ls(pos = pos,