Subset dimensions of a caobj
subset_dims.Rd
Subsets the dimensions according to user input.
Examples
# Simulate scRNAseq data.
cnts <- data.frame(cell_1 = rpois(10, 5),
cell_2 = rpois(10, 10),
cell_3 = rpois(10, 20))
rownames(cnts) <- paste0("gene_", 1:10)
cnts <- as.matrix(cnts)
# Run correspondence analysis.
ca <- cacomp(cnts)
#> Warning:
#> Parameter top is >nrow(obj) and therefore ignored.
ca <- subset_dims(ca, 2)