unmatrix: Transform data frame with embedded matrices

View source: R/aggregate_multiple_fun.R

unmatrixR Documentation

Transform data frame with embedded matrices

Description

Transform data frame with embedded matrices

Usage

unmatrix(data, sep = "_")

Arguments

data

data frame

sep

A character string used when variable names are generated.

Value

data frame

Examples

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])

SSBtools documentation built on July 9, 2023, 6:16 p.m.

Related to unmatrix in SSBtools...