Get the dimensions of a Reducedexperiment object
Source:R/methods-ReducedExperiment.R
dim-ReducedExperiment-method.Rd
Get the dimensions of a Reducedexperiment object
Usage
# S4 method for class 'ReducedExperiment'
dim(x)
Arguments
- x
A ReducedExperiment object.
Value
Returns a named vector containing the dimensions of the samples, features and reduced dimensions.
Examples
# Create a randomised ReducedExperiment
re <- ReducedExperiment:::.createRandomisedReducedExperiment(100, 50, 10)
# Get the dimensions
dim(re)
#> Features Samples Components
#> 100 50 10