View source: R/aggregate_multiple_fun.R
unmatrix | R Documentation |
Transform data frame with embedded matrices
unmatrix(data, sep = "_")
data |
data frame |
sep |
A character string used when variable names are generated. |
data frame
a <- aggregate(1:6, list(rep(1:3, 2)), range)
b <- unmatrix(a)
a
b
dim(a)
dim(b)
names(a)
names(b)
class(a[, 2])
class(b[, 2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.