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))
Run the code above in your browser using DataLab