Description Usage Arguments Value Examples
Convert cacomp object to list.
1 2 | ## S4 method for signature 'cacomp'
as.list(x)
|
x |
A cacomp object. |
A cacomp object.
1 2 3 4 5 6 7 8 9 | # 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)
ca_list <- as.list(ca)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.