Learn R Programming

SeuratObject (version 5.0.2)

dim.Seurat: Feature and Cell Numbers

Description

Feature and Cell Numbers

Usage

# S3 method for Seurat
dim(x)

Value

A two-length numeric vector with the total number of features and cells in x

Arguments

x

A Seurat object

See Also

Seurat object, validity, and interaction methods $.Seurat(), Seurat-class, Seurat-validity, [[.Seurat(), [[<-,Seurat, [[<-,Seurat,NULL, dimnames.Seurat(), merge.Seurat(), names.Seurat(), subset.Seurat()

Examples

Run this code
# Get the number of features in an object
nrow(pbmc_small)

# Get the number of cells in an object
ncol(pbmc_small)

Run the code above in your browser using DataLab