listOrNULL-class: Union of a List and NULL

Description Author(s) Examples

Description

Allows a slot to be either a list or a NULL.

Author(s)

Dario Strbenac

Examples

1
2
  setClass("EasyClassifier", representation(model = "listOrNULL"))
  classifier <- new("EasyClassifier", model = NULL) # Optimistic classifier.

ClassifyR documentation built on Nov. 8, 2020, 6:53 p.m.