characterOrDataFrame {ClassifyR} | R Documentation

## Union of a Character and a DataFrame

### Description

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

### Author(s)

Dario Strbenac

### Examples

      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)

[Package ClassifyR version 2.8.0 Index]