characterOrDataFrame-class: Union of a Character and a DataFrame

Description Author(s) Examples

Description

Allows a slot to be either a character or a DataFrame.

Author(s)

Dario Strbenac

Examples

1
2
3
4
5
  setClass("Selections", representation(features = "characterOrDataFrame"))
  selections <- new("Selections", features = c("BRAF", "NRAS"))
  featuresTable <- DataFrame(assay = c("RNA-seq", "Mass spectrometry"),
                             feature = c("PD-1", "MITF"))
  omicsSelections <- new("Selections", features = featuresTable)

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