melt_array: Melt and array into a data frame

melt_arrayR Documentation

Melt and array into a data frame

Description

This is a replacement for reshape2::melt, intended to reduce the number of package dependencies

Usage

melt_array(x, value.name = "value")

Arguments

x

an array or matrix

value.name

an optional input for the column name containing data

Value

a data frame with the melted data

Examples

A <- array(1:27, dim = c(3,3,3))
melt_array(A)

danieladamspencer/bayestensorreg documentation built on July 23, 2024, 10:14 a.m.