View source: R/interval_format_conversions.R
| ARRAY_to_RSDA | R Documentation |
Convert a 3-dimensional array [n, p, 2] to RSDA format
(symbolic_tbl with symbolic_interval columns).
ARRAY_to_RSDA(data)
data |
A numeric array of dimension |
A symbolic_tbl with p symbolic_interval columns.
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"))
rsda <- ARRAY_to_RSDA(x)
rsda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.