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 July 8, 2018, 2 a.m.