R/doQmap.R

doQmap <- function(x,fobj,...){
  cc <- class(fobj)
  ffun <- substring(cc,4,nchar(cc))
  ffun <- paste("do",ffun,sep="")
  test <- sapply(ffun,exists,mode="function") 
  if(all(test)){
    ffun <- match.fun(ffun)
  } else {
    stop("doQmap not defined for class(fobj) ==",
         class(fobj))
  }
  ffun(x,fobj,...)
}

Try the qmap package in your browser

Any scripts or data that you put into this service are public.

qmap documentation built on May 1, 2019, 7:31 p.m.