[R] my own function given to lapply

Jeff Gentry jgentry at jimmy.harvard.edu
Thu Feb 26 20:34:48 CET 2004


> treshold <- function(pred) {
  ^^^^^^^^

> Error in match.fun(FUN) : Object "threshold" not found
                                    ^^^^^^^^^

If this is a direct cut & paste, you have a typo as you've defined the
function as "treshold".




More information about the R-help mailing list