Convert cacomp object to list.
as.list-cacomp-method.Rd
Convert cacomp object to list.
Usage
# S4 method for class 'cacomp'
as.list(x)
Examples
# Simulate counts
cnts <- mapply(function(x){rpois(n = 500, lambda = x)},
x = sample(1:100, 50, replace = TRUE))
rownames(cnts) <- paste0("gene_", 1:nrow(cnts))
colnames(cnts) <- paste0("cell_", 1:ncol(cnts))
# Run correspondence analysis
ca <- cacomp(obj = cnts, princ_coords = 3)
#> Warning:
#> Parameter top is >nrow(obj) and therefore ignored.
#> No dimensions specified. Setting dimensions to: 9
ca_list <- as.list(ca)