Description Usage Arguments Details Author(s) Examples
used to convert the phase from the visually friendly matrix to array.
1 2 3 4 | phaseArray2phaseMatrix(x, ...)
## S4 method for signature 'array'
phaseArray2phaseMatrix(x, ...)
|
x |
array see examples |
... |
arguments to forward to internal functions |
A more effectice way of store the phase data in the ASEset object
Jesper R. Gadin, Lasse Folkersen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #load data
data(ASEset)
a <- ASEset
#example phase matrix
p1 <- matrix(sample(c(1,0),replace=TRUE, size=nrow(a)*ncol(a)),nrow=nrow(a), ncol(a))
p2 <- matrix(sample(c(1,0),replace=TRUE, size=nrow(a)*ncol(a)),nrow=nrow(a), ncol(a))
p <- matrix(paste(p1,sample(c("|","|","/"), size=nrow(a)*ncol(a), replace=TRUE), p2, sep=""),
nrow=nrow(a), ncol(a))
ar <- phaseMatrix2Array(p)
#Convert back
mat <- phaseArray2phaseMatrix(ar)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.