as.dimRedData {dimRed} | R Documentation |
Conversion functions to dimRedData.
as.dimRedData(formula, ...)
## S4 method for signature 'formula'
as.dimRedData(formula, data)
formula |
The formula, left hand side is assigned to the meta slot right hand side is assigned to the data slot. |
... |
other arguments. |
data |
Will be coerced into a |
formula
: Convert a data.frame
to a dimRedData
object using a formula
Other dimRedData:
dimRedData-class
## create a dimRedData object using a formula
as.dimRedData(Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width,
iris)[1:5]