R/transforming.fnc.R

`transforming.fnc` <-
function(y, fun) {
  if (is.function(fun)) {
    return(fun(y))
    #if (fun == "exp") {
    #  return(exp(y))
    #} else {
    #  return(plogis(y))
    #}
  } else 
    return(y)
}

Try the languageR package in your browser

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

languageR documentation built on May 30, 2017, 3:09 a.m.