Skip to contents

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.

Author

Jack Gisby

Examples

# Create a randomised ReducedExperiment
re <- ReducedExperiment:::.createRandomisedReducedExperiment(100, 50, 10)

# Get the dimensions
dim(re)
#>   Features    Samples Components 
#>        100         50         10