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

statisticsnorway/SSBtools documentation built on Jan. 17, 2024, 3:40 p.m.