as.counts {provenance} | R Documentation |
create a counts
object
Description
Convert an object of class matrix
or data.frame
to an
object of class counts
Usage
as.counts(x, method = "chisq", colmap = "rainbow")
Arguments
x |
an object of class |
method |
either |
colmap |
the colour map to be used in pie charts. |
Value
an object of class counts
Examples
X <- matrix(c(0,100,0,30,11,2,94,36,0),nrow=3,ncol=3)
rownames(X) <- 1:3
colnames(X) <- c('a','b','c')
comp <- as.counts(X)
d <- diss(comp)
[Package provenance version 4.3 Index]