as.list-cacomp-method: Convert cacomp object to list.

Description Usage Arguments Value Examples

Description

Convert cacomp object to list.

Usage

1
2
## S4 method for signature 'cacomp'
as.list(x)

Arguments

x

A cacomp object.

Value

A cacomp object.

Examples

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)

elagralinska/APLpackage documentation built on Dec. 20, 2021, 4:15 a.m.