dim.DimReduc | R Documentation |
Pull meta-information about cells and dimensions for a given
dimensional reduction; cell meta-information is stored
as row meta-information (eg. nrow
, rownames
) and dimension
meta-information is stored as column meta-information (eg. ncol
,
colnames
)
## S3 method for class 'DimReduc'
dim(x)
## S3 method for class 'DimReduc'
dimnames(x)
## S3 method for class 'DimReduc'
length(x)
## S3 method for class 'DimReduc'
names(x)
x |
A |
dim
: The number of cells (nrow
) and dimensions
(ncol
)
dimnames
: The cell (row) and dimension (column) names
length
: The number of dimensions
names
: The dimension identifiers
Cells
Dimensional reduction object, validity, and interaction methods
CreateDimReducObject()
,
DimReduc-class
,
DimReduc-validity
,
[.DimReduc()
,
[[.DimReduc()
,
merge.DimReduc()
,
print.DimReduc()
,
subset.DimReduc()
pca <- pbmc_small[["pca"]]
pca
dim(pca)
# nrow is number of cells
nrow(pca)
# rownames pulls cell names
head(rownames(pca))
# ncol and length are number of dimensions
ncol(pca)
length(pca)
# colnames and names pull dimension identifiers
head(colnames(pca))
head(names(pca))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.