File: ls.funs.R

package info (click to toggle)
gdata 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 964 kB
  • sloc: sh: 27; makefile: 15
file content (15 lines) | stat: -rw-r--r-- 288 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ls.funs <- function (...)
{
  mycall <- match.call()
  mycall[[1]] <- as.name("ls")
  nameList <- eval.parent(mycall)
  if(length(nameList) > 0)
  {
    funcFlags <- sapply(nameList, function(x) is.function(get(x)))
    return(nameList[funcFlags])
  }
  else
  {
    return(list())
  }
}