View source: R/interval_format_conversions.R
| ARRAY_to_iGAP | R Documentation |
Convert a 3-dimensional array [n, p, 2] to iGAP format
(data.frame with comma-separated interval values).
ARRAY_to_iGAP(data)
data |
A numeric array of dimension |
A data.frame in iGAP format with comma-separated "min,max"
values.
x <- array(NA, dim = c(4, 3, 2))
x[,,1] <- matrix(c(1,2,3,4, 5,6,7,8, 9,10,11,12), nrow = 4)
x[,,2] <- matrix(c(3,5,6,7, 8,9,10,12, 13,15,16,18), nrow = 4)
dimnames(x) <- list(paste0("obs_", 1:4), c("V1","V2","V3"), c("min","max"))
igap <- ARRAY_to_iGAP(x)
igap
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.