functionOrNULL-class: Union of A Function and NULL

Description Author(s) Examples

Description

Allows a slot to be either a function or empty.

Author(s)

Dario Strbenac

Examples

1
2
  PredictParams(NULL, getClasses = function(result) result)
  PredictParams(predict, getClasses = function(result) result[["classes"]])

ClassifyR documentation built on Sept. 5, 2018, 6 p.m.